From aac2d0774fe42c4ca6e1cf1ce409806c6226282f Mon Sep 17 00:00:00 2001 From: Jaroslav Kysela Date: Wed, 4 Feb 2015 12:45:19 +0100 Subject: [PATCH] SAT>IP: Do extra shutdown only once --- src/input/mpegts/satip/satip_frontend.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/input/mpegts/satip/satip_frontend.c b/src/input/mpegts/satip/satip_frontend.c index a14245b3..64fd9f54 100644 --- a/src/input/mpegts/satip/satip_frontend.c +++ b/src/input/mpegts/satip/satip_frontend.c @@ -1458,9 +1458,10 @@ new_tune: if (ev[0].data.ptr == rtsp) { r = http_client_run(rtsp); if (r < 0) { - if (rtsp->hc_code == 404) { + if (rtsp->hc_code == 404 && session[0]) { tvhlog(LOG_WARNING, "satip", "%s - RTSP 404 ERROR (retrying)", buf); satip_frontend_extra_shutdown(lfe, session, stream_id); + session[0] = '\0'; start = 1; http_client_close(rtsp); rtsp = NULL;