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
|
}//indentation intentionally wrong, to minimize Pro/nonPro diffs
|
||||||
/*LTS-END*/
|
/*LTS-END*/
|
||||||
//join all joinable threads
|
//join all joinable threads
|
||||||
|
HIGH_MSG("Joining stats thread...");
|
||||||
statsThread.join();
|
statsThread.join();
|
||||||
|
HIGH_MSG("Joining monitor thread...");
|
||||||
monitorThread.join();
|
monitorThread.join();
|
||||||
/*LTS-START*/
|
/*LTS-START*/
|
||||||
|
HIGH_MSG("Joining uplink thread...");
|
||||||
uplinkThread.join();
|
uplinkThread.join();
|
||||||
|
HIGH_MSG("Joining push thread...");
|
||||||
pushThread.join();
|
pushThread.join();
|
||||||
#ifdef LICENSING
|
#ifdef LICENSING
|
||||||
|
HIGH_MSG("Joining license thread...");
|
||||||
licenseThread.join();
|
licenseThread.join();
|
||||||
#endif
|
#endif
|
||||||
/*LTS-END*/
|
/*LTS-END*/
|
||||||
|
|
|
@ -183,7 +183,7 @@ namespace Controller{
|
||||||
now = Util::epoch();
|
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