diff --git a/src/output/output_hls.cpp b/src/output/output_hls.cpp index 26e1b4d5..0961e361 100644 --- a/src/output/output_hls.cpp +++ b/src/output/output_hls.cpp @@ -346,9 +346,9 @@ namespace Mist { H.Clean(); return; } - - if (H.url.find("hls") == std::string::npos) { - myConn.close(); + + if (H.url.find("hls") == std::string::npos){ + onFail(); return; } @@ -366,6 +366,7 @@ namespace Mist { initialize(); if (!keepGoing()){ + onFail(); return; }