From 2ba1dac4cda18208fee33dca8cd17fd1fbb09694 Mon Sep 17 00:00:00 2001 From: Thulinma Date: Mon, 15 May 2017 11:15:11 +0200 Subject: [PATCH] TS UDP input error message fix + stop if buffer shuts down fix --- src/input/input_ts.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/input/input_ts.cpp b/src/input/input_ts.cpp index 902035f7..7b404dd4 100755 --- a/src/input/input_ts.cpp +++ b/src/input/input_ts.cpp @@ -310,7 +310,7 @@ namespace Mist { cfgPointer = config; globalStreamName = streamName; unsigned long long threadCheckTimer = Util::bootSecs(); - while (config->is_active) { + while (config->is_active && nProxy.userClient.isAlive()) { if (inFile) { if (feof(inFile)){ config->is_active = false; @@ -403,7 +403,7 @@ namespace Mist { if (!inFile){ Util::sleep(100); if (Util::bootSecs() - noDataSince > 20){ - WARN_MSG("Data TS packets received for 20 seconds - disconnecting"); + WARN_MSG("No packets received for 20 seconds - terminating"); config->is_active = false; } }