diff options
author | Gluzskiy Alexandr <sss123next@list.ru> | 2010-11-01 15:35:20 +0200 |
---|---|---|
committer | Gluzskiy Alexandr <sss123next@list.ru> | 2010-11-01 15:35:20 +0200 |
commit | fb9e64ea76b6363b57a4a82d47da0280bb0a1429 (patch) | |
tree | 14ad4ba37b3b96ea0e7fc75e989e9d445eb9c2e7 /gpg_wrapper.cpp | |
parent | 0922841b20da6c15076f1467280a0e67407826d1 (diff) |
modified: gpg_wrapper.cpp
modified: main.cpp
modified: new_gpg.rc
Diffstat (limited to 'gpg_wrapper.cpp')
-rw-r--r-- | gpg_wrapper.cpp | 4 |
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; } |