Added shutdown reason message in stream-mode inputs
This commit is contained in:
parent
8f38872ffc
commit
c6377085f0
1 changed files with 5 additions and 1 deletions
|
@ -281,6 +281,10 @@ namespace Mist {
|
||||||
getNext();
|
getNext();
|
||||||
nProxy.userClient.keepAlive();
|
nProxy.userClient.keepAlive();
|
||||||
}
|
}
|
||||||
|
std::string reason = "Unknown";
|
||||||
|
if (!thisPacket){reason = "Invalid packet";}
|
||||||
|
if (!config->is_active){reason = "received deactivate signal";}
|
||||||
|
if (!nProxy.userClient.isAlive()){reason = "buffer shutdown";}
|
||||||
|
|
||||||
closeStreamSource();
|
closeStreamSource();
|
||||||
|
|
||||||
|
@ -289,7 +293,7 @@ namespace Mist {
|
||||||
pullLock.post();
|
pullLock.post();
|
||||||
pullLock.close();
|
pullLock.close();
|
||||||
pullLock.unlink();
|
pullLock.unlink();
|
||||||
INFO_MSG("Stream input %s closing clean", streamName.c_str());
|
INFO_MSG("Stream input %s closing clean; reason: %s", streamName.c_str(), reason.c_str());
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue