Fixed Windows slow load bug.
This commit is contained in:
parent
312212a25b
commit
6d384bd030
1 changed files with 1 additions and 1 deletions
|
@ -152,7 +152,7 @@ namespace IPC {
|
||||||
mySem = OpenMutex(SYNCHRONIZE, false, semaName.c_str());
|
mySem = OpenMutex(SYNCHRONIZE, false, semaName.c_str());
|
||||||
}
|
}
|
||||||
if (!(*this)) {
|
if (!(*this)) {
|
||||||
if (GetLastError() == ERROR_FILE_NOT_FOUND){//Error code 2
|
if (GetLastError() == ERROR_FILE_NOT_FOUND && !noWait){//Error code 2
|
||||||
Util::wait(500);
|
Util::wait(500);
|
||||||
} else {
|
} else {
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Add table
Reference in a new issue