Fixed TS input disconnect by controller

This commit is contained in:
Thulinma 2021-06-17 00:09:02 +02:00
parent a8305396a2
commit 0de5ebfbf3

View file

@ -560,7 +560,7 @@ namespace Mist{
// Connect to stats for INPUT detection
statComm.reload();
if (statComm){
if (statComm.getStatus() == COMM_STATUS_REQDISCONNECT){
if (statComm.getStatus() & COMM_STATUS_REQDISCONNECT){
config->is_active = false;
Util::logExitReason("received shutdown request from controller");
return;