Manager: fix bug in launching client.

If the client failed to run (e.g. because it didn't exist)
the manager didn't realize it.
This commit is contained in:
David Anderson 2020-05-17 22:35:40 -07:00
parent bd13d04b46
commit 745e505607
1 changed files with 4 additions and 2 deletions

View File

@ -329,11 +329,13 @@ bool CBOINCClientManager::StartupBOINCCore() {
if (0 != m_lBOINCCoreProcessId) { if (0 != m_lBOINCCoreProcessId) {
m_bBOINCStartedByManager = true; m_bBOINCStartedByManager = true;
bReturnValue = true;
// Allow time for daemon to start up so we don't keep relaunching it // Allow time for daemon to start up so we don't keep relaunching it
for (int i=0; i<100; i++) { // Wait up to 1 seccond in 10 ms increments for (int i=0; i<100; i++) { // Wait up to 1 seccond in 10 ms increments
boinc_sleep(0.01); boinc_sleep(0.01);
if (IsBOINCCoreRunning()) break; if (IsBOINCCoreRunning()) {
bReturnValue = true;
break;
}
} }
} }