summaryrefslogtreecommitdiff
path: root/gpg_wrapper.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'gpg_wrapper.cpp')
-rw-r--r--gpg_wrapper.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/gpg_wrapper.cpp b/gpg_wrapper.cpp
index 8ab32a3..de44233 100644
--- a/gpg_wrapper.cpp
+++ b/gpg_wrapper.cpp
@@ -130,9 +130,8 @@ pxResult pxExecute(wstring *acommandline, char *ainput, string *aoutput, LPDWORD
success=WriteFile(writestdin,inputpos,size,&transfered,NULL);
inputpos+=transfered;
- Sleep(200);
+ boost::this_thread::sleep(boost::posix_time::milliseconds(200));
}
- gpg_mutex.unlock();
storeOutput(readstdout,aoutput);
@@ -148,6 +147,7 @@ pxResult pxExecute(wstring *acommandline, char *ainput, string *aoutput, LPDWORD
CloseHandle(writestdin);
*result = pxSuccess;
+ gpg_mutex.unlock();
return pxSuccess;
}