TS UDP input error message fix + stop if buffer shuts down fix
This commit is contained in:
parent
60d647be8e
commit
2ba1dac4cd
1 changed files with 2 additions and 2 deletions
|
@ -310,7 +310,7 @@ namespace Mist {
|
||||||
cfgPointer = config;
|
cfgPointer = config;
|
||||||
globalStreamName = streamName;
|
globalStreamName = streamName;
|
||||||
unsigned long long threadCheckTimer = Util::bootSecs();
|
unsigned long long threadCheckTimer = Util::bootSecs();
|
||||||
while (config->is_active) {
|
while (config->is_active && nProxy.userClient.isAlive()) {
|
||||||
if (inFile) {
|
if (inFile) {
|
||||||
if (feof(inFile)){
|
if (feof(inFile)){
|
||||||
config->is_active = false;
|
config->is_active = false;
|
||||||
|
@ -403,7 +403,7 @@ namespace Mist {
|
||||||
if (!inFile){
|
if (!inFile){
|
||||||
Util::sleep(100);
|
Util::sleep(100);
|
||||||
if (Util::bootSecs() - noDataSince > 20){
|
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;
|
config->is_active = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue