]> www.vanbest.org Git - motioneye-debian/commitdiff
make sure to remove the cached jpeg whenever the mjpg client disconnects
authorCalin Crisan <ccrisan@gmail.com>
Thu, 20 Aug 2015 18:44:15 +0000 (21:44 +0300)
committerCalin Crisan <ccrisan@gmail.com>
Thu, 20 Aug 2015 18:44:15 +0000 (21:44 +0300)
src/mjpgclient.py

index 088a9624448e507cb3048b1920f8e4a8a3456b95..093c3cdab0ae5a083b495dea7ed1c7ed7b44ff46 100644 (file)
@@ -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: