From: Calin Crisan Date: Thu, 20 Aug 2015 18:44:15 +0000 (+0300) Subject: make sure to remove the cached jpeg whenever the mjpg client disconnects X-Git-Url: http://www.vanbest.org/gitweb/?a=commitdiff_plain;h=59d3794ecd2dbbf36f935345721684d3a08b03b7;p=motioneye-debian make sure to remove the cached jpeg whenever the mjpg client disconnects --- diff --git a/src/mjpgclient.py b/src/mjpgclient.py index 088a962..093c3cd 100644 --- a/src/mjpgclient.py +++ b/src/mjpgclient.py @@ -77,6 +77,9 @@ class MjpgClient(iostream.IOStream): motionctl.start(deferred=True) MjpgClient.last_erroneous_close_time = now + + # remove the cached picture + MjpgClient.last_jpgs.pop(self._camera_id, None) def _check_error(self): if self.socket is None: