Fix GridRepublic branding bug.

svn path=/trunk/boinc/; revision=13965
This commit is contained in:
Charlie Fenton 2007-10-26 10:00:00 +00:00
parent 89c9b4f112
commit 4394245d16
1 changed files with 12 additions and 12 deletions

View File

@ -228,18 +228,6 @@ OSStatus CScreensaver::initBOINCApp() {
saverState = SaverState_CantLaunchCoreClient;
m_CoreClientPID = FindProcessPID("boinc", 0);
if (m_CoreClientPID) {
m_wasAlreadyRunning = true;
saverState = SaverState_LaunchingCoreClient;
return noErr;
}
m_wasAlreadyRunning = false;
if (++retryCount > 3) // Limit to 3 relaunches to prevent thrashing
return -1;
brandId = GetBrandID();
switch(brandId) {
case 1:
@ -254,6 +242,18 @@ OSStatus CScreensaver::initBOINCApp() {
break;
}
m_CoreClientPID = FindProcessPID("boinc", 0);
if (m_CoreClientPID) {
m_wasAlreadyRunning = true;
saverState = SaverState_LaunchingCoreClient;
return noErr;
}
m_wasAlreadyRunning = false;
if (++retryCount > 3) // Limit to 3 relaunches to prevent thrashing
return -1;
err = GetpathToBOINCManagerApp(boincPath, sizeof(boincPath));
if (err) { // If we couldn't find BOINCManager.app, try default path
strcpy(boincPath, "/Applications/");