Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
SAT>IP: Do extra shutdown only once
  • Loading branch information
perexg committed Feb 4, 2015
1 parent 2796c69 commit aac2d07
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/input/mpegts/satip/satip_frontend.c
Expand Up @@ -1458,9 +1458,10 @@ satip_frontend_input_thread ( void *aux )
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;
Expand Down

0 comments on commit aac2d07

Please sign in to comment.