mirror of https://github.com/BOINC/boinc.git
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:
parent
bd13d04b46
commit
745e505607
|
@ -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;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue