From 6d384bd030827317b44170da9efea43dbd2e255a 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 faa2387b..49b12d3a 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;