Bugfix: Fix various places where Bitcoin-Qt was being shutdown improperly

(Partial/merge of upstream 9247134eab, 1a3f0da922, and 3e34352222)
This commit is contained in:
Philip Kaufmann
2012-06-11 07:40:14 +02:00
committed by Luke Dashjr
parent 0b1fda6f65
commit 276cfd8530
9 changed files with 26 additions and 15 deletions

View File

@@ -1705,7 +1705,7 @@ void ThreadMessageHandler2(void* parg)
vnThreadsRunning[2]--;
Sleep(100);
if (fRequestShutdown)
Shutdown(NULL);
StartShutdown();
vnThreadsRunning[2]++;
if (fShutdown)
return;