Gracefully shut down outputs when signals are received.

This commit is contained in:
Thulinma 2015-03-05 00:31:07 +01:00
parent 81b7ab9a0e
commit 87583dae49

View file

@ -525,7 +525,7 @@ namespace Mist {
int Output::run() { int Output::run() {
DEBUG_MSG(DLVL_MEDIUM, "MistOut client handler started"); DEBUG_MSG(DLVL_MEDIUM, "MistOut client handler started");
while (myConn.connected() && (wantRequest || parseData)){ while (config->is_active && myConn.connected() && (wantRequest || parseData)){
stats(); stats();
if (wantRequest){ if (wantRequest){
requestHandler(); requestHandler();