From 5e41804cf8c2f3f22388e420465e5d2809d9f9e6 Mon Sep 17 00:00:00 2001 From: Calin Crisan Date: Sat, 5 Jul 2014 20:31:29 +0300 Subject: [PATCH] mjpg client timeout fix --- src/mjpgclient.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/mjpgclient.py b/src/mjpgclient.py index 7aad8cd..686be37 100644 --- a/src/mjpgclient.py +++ b/src/mjpgclient.py @@ -141,6 +141,9 @@ def _garbage_collector(): MjpgClient.last_jpg_moment[camera_id] = now continue + + if client.closed(): + continue delta = now - last_jpg_moment delta = delta.days * 86400 + delta.seconds -- 2.39.5