From 745e50560749795d8231327bdbdda50ffa9bc06d Mon Sep 17 00:00:00 2001 From: David Anderson Date: Sun, 17 May 2020 22:35:40 -0700 Subject: [PATCH] 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. --- clientgui/BOINCClientManager.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/clientgui/BOINCClientManager.cpp b/clientgui/BOINCClientManager.cpp index 1604646e3a..54efdd2f7a 100644 --- a/clientgui/BOINCClientManager.cpp +++ b/clientgui/BOINCClientManager.cpp @@ -329,11 +329,13 @@ bool CBOINCClientManager::StartupBOINCCore() { if (0 != m_lBOINCCoreProcessId) { m_bBOINCStartedByManager = true; - bReturnValue = true; // 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 boinc_sleep(0.01); - if (IsBOINCCoreRunning()) break; + if (IsBOINCCoreRunning()) { + bReturnValue = true; + break; + } } }