Improved controller shutdown speed
This commit is contained in:
parent
b27c25482a
commit
370418631c
2 changed files with 6 additions and 1 deletions
|
@ -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*/
|
||||
|
|
|
@ -183,7 +183,7 @@ namespace Controller{
|
|||
now = Util::epoch();
|
||||
}
|
||||
}
|
||||
Util::wait(2000);//wait at least 2 seconds
|
||||
Util::sleep(1000);//sleep a bit
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue