Improved controller shutdown speed

This commit is contained in:
Thulinma 2017-01-01 23:20:49 +01:00
parent b27c25482a
commit 370418631c
2 changed files with 6 additions and 1 deletions

View file

@ -383,12 +383,17 @@ int main_loop(int argc, char ** argv){
}//indentation intentionally wrong, to minimize Pro/nonPro diffs
/*LTS-END*/
//join all joinable threads
HIGH_MSG("Joining stats thread...");
statsThread.join();
HIGH_MSG("Joining monitor thread...");
monitorThread.join();
/*LTS-START*/
HIGH_MSG("Joining uplink thread...");
uplinkThread.join();
HIGH_MSG("Joining push thread...");
pushThread.join();
#ifdef LICENSING
HIGH_MSG("Joining license thread...");
licenseThread.join();
#endif
/*LTS-END*/

View file

@ -183,7 +183,7 @@ namespace Controller{
now = Util::epoch();
}
}
Util::wait(2000);//wait at least 2 seconds
Util::sleep(1000);//sleep a bit
}
}
}