Improved exit reason logging in Mist::Input
# Conflicts: # src/input/input.cpp
This commit is contained in:
parent
118ba102f2
commit
616c92eaa5
1 changed files with 2 additions and 1 deletions
|
@ -652,6 +652,7 @@ namespace Mist{
|
|||
if (Triggers::shouldTrigger("STREAM_READY", config->getString("streamname"))){
|
||||
std::string payload = config->getString("streamname") + "\n" + capa["name"].asStringRef();
|
||||
if (!Triggers::doTrigger("STREAM_READY", payload, config->getString("streamname"))){
|
||||
Util::logExitReason("STREAM_READY trigger returned false");
|
||||
config->is_active = false;
|
||||
}
|
||||
}
|
||||
|
@ -941,8 +942,8 @@ namespace Mist{
|
|||
if (!statComm){statComm.reload();}
|
||||
if (statComm){
|
||||
if (statComm.getStatus() & COMM_STATUS_REQDISCONNECT){
|
||||
config->is_active = false;
|
||||
Util::logExitReason("received shutdown request from controller");
|
||||
config->is_active = false;
|
||||
return;
|
||||
}
|
||||
uint64_t now = Util::bootSecs();
|
||||
|
|
Loading…
Add table
Reference in a new issue