From 5b78d91c2040d7383b30a0f0d731ff6809d2068e Mon Sep 17 00:00:00 2001 From: Calin Crisan Date: Sun, 20 Dec 2015 18:34:07 +0200 Subject: [PATCH] minor rtsp error handling fix --- motioneye/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/motioneye/utils.py b/motioneye/utils.py index be7fd8f..17472b6 100644 --- a/motioneye/utils.py +++ b/motioneye/utils.py @@ -472,7 +472,7 @@ def test_rtsp_url(data, callback): stream.read_until_regex('RTSP/1.0 \d+ ', on_rtsp) timeout[0] = io_loop.add_timeout(datetime.timedelta(seconds=settings.MJPG_CLIENT_TIMEOUT), on_rtsp) - def on_rtsp(data): + def on_rtsp(data=None): io_loop.remove_timeout(timeout[0]) if data: -- 2.39.5