Fixed Windows slow load bug.

This commit is contained in:
Thulinma 2016-06-24 13:48:21 +02:00
parent 8aebd01afd
commit f53882a822

View file

@ -152,7 +152,7 @@ namespace IPC {
mySem = OpenMutex(SYNCHRONIZE, false, semaName.c_str());
}
if (!(*this)) {
if (GetLastError() == ERROR_FILE_NOT_FOUND){//Error code 2
if (GetLastError() == ERROR_FILE_NOT_FOUND && !noWait){//Error code 2
Util::wait(500);
} else {
break;