]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
SAT>IP: Do extra shutdown only once
authorJaroslav Kysela <perex@perex.cz>
Wed, 4 Feb 2015 11:45:19 +0000 (12:45 +0100)
committerJaroslav Kysela <perex@perex.cz>
Wed, 4 Feb 2015 11:45:19 +0000 (12:45 +0100)
src/input/mpegts/satip/satip_frontend.c

index a14245b39ee88777086f7447c6e9fca181b4bc86..64fd9f54c1e79febb6d8065da40b9a1b8b0ec356 100644 (file)
@@ -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;