client: Fix an issue which can sometimes cause client to take a long time to connect, especially on OS 10.10 Yosemite.

This commit is contained in:
Charlie Fenton 2015-09-28 03:04:50 -07:00
parent 44adb2b0bc
commit 5e984c0778
1 changed files with 3 additions and 1 deletions

View File

@ -75,6 +75,7 @@
// Suppress obsolete warning when building for OS 10.3.9
#define DLOPEN_NO_WARN
#include <mach-o/dyld.h>
#include <Carbon/Carbon.h>
#endif
#include "config.h"
#include <dlfcn.h>
@ -344,7 +345,8 @@ void COPROC_NVIDIA::get(
retval = (*__cuInit)(0);
#ifdef __APPLE__
if (!retval) break;
boinc_sleep(1.);
if (TickCount() > (120*60)) break; // Don't retry if system has been up for over 2 minutes
boinc_sleep(1.);
continue;
}
#endif