From f53882a822eea9ae8550802f49d62e98634bfaf6 Mon Sep 17 00:00:00 2001 From: Thulinma Date: Fri, 24 Jun 2016 13:48:21 +0200 Subject: [PATCH] Fixed Windows slow load bug. --- lib/shared_memory.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/shared_memory.cpp b/lib/shared_memory.cpp index 78ad91b0..308acea5 100644 --- a/lib/shared_memory.cpp +++ b/lib/shared_memory.cpp @@ -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;