mirror of https://github.com/BOINC/boinc.git
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:
parent
44adb2b0bc
commit
5e984c0778
|
@ -75,6 +75,7 @@
|
||||||
// Suppress obsolete warning when building for OS 10.3.9
|
// Suppress obsolete warning when building for OS 10.3.9
|
||||||
#define DLOPEN_NO_WARN
|
#define DLOPEN_NO_WARN
|
||||||
#include <mach-o/dyld.h>
|
#include <mach-o/dyld.h>
|
||||||
|
#include <Carbon/Carbon.h>
|
||||||
#endif
|
#endif
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
#include <dlfcn.h>
|
#include <dlfcn.h>
|
||||||
|
@ -344,6 +345,7 @@ void COPROC_NVIDIA::get(
|
||||||
retval = (*__cuInit)(0);
|
retval = (*__cuInit)(0);
|
||||||
#ifdef __APPLE__
|
#ifdef __APPLE__
|
||||||
if (!retval) break;
|
if (!retval) break;
|
||||||
|
if (TickCount() > (120*60)) break; // Don't retry if system has been up for over 2 minutes
|
||||||
boinc_sleep(1.);
|
boinc_sleep(1.);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue