From fb9e64ea76b6363b57a4a82d47da0280bb0a1429 Mon Sep 17 00:00:00 2001 From: Gluzskiy Alexandr Date: Mon, 1 Nov 2010 15:35:20 +0200 Subject: modified: gpg_wrapper.cpp modified: main.cpp modified: new_gpg.rc --- gpg_wrapper.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gpg_wrapper.cpp') 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; } -- cgit v1.2.3