diff options
author | XhmikosR <xhmikosr@users.sourceforge.net> | 2013-08-03 18:58:26 +0400 |
---|---|---|
committer | XhmikosR <xhmikosr@users.sourceforge.net> | 2013-08-09 13:53:35 +0400 |
commit | 2d1d55517fefb983809f684430e7305b5e2e52a2 (patch) | |
tree | 598c8f84f933f844c8389f4735e34bc3545e6201 /src/thirdparty/unrar/errhnd.cpp | |
parent | 332593479bc5fb7e1313a3267698124fa76282de (diff) |
Update Unrar to 5.0.9.
Diffstat (limited to 'src/thirdparty/unrar/errhnd.cpp')
-rw-r--r-- | src/thirdparty/unrar/errhnd.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/thirdparty/unrar/errhnd.cpp b/src/thirdparty/unrar/errhnd.cpp index 1fb40c7b8..a47d1c16c 100644 --- a/src/thirdparty/unrar/errhnd.cpp +++ b/src/thirdparty/unrar/errhnd.cpp @@ -15,6 +15,7 @@ void ErrorHandler::Clean() Silent=false; DoShutdown=false; UserBreak=false; + MainExit=false; } @@ -287,7 +288,8 @@ void _stdfunction ProcessSignal(int SigType) #ifdef _WIN_ALL // Let the main thread to handle 'throw' and destroy file objects. - Sleep(200); + for (uint I=0;!ErrHandler.MainExit && I<50;I++) + Sleep(100); #if defined(USE_RC) && !defined(SFX_MODULE) && !defined(RARDLL) ExtRes.UnloadDLL(); #endif |