Clean up shutdown process

This commit is contained in:
Gavin Andresen
2013-04-03 19:57:53 -04:00
parent 21eb5adadb
commit b31499ec72
15 changed files with 147 additions and 178 deletions
+1 -1
View File
@@ -260,9 +260,9 @@ int main(int argc, char *argv[])
guiref = 0;
}
// Shutdown the core and its threads, but don't exit Bitcoin-Qt here
Shutdown(NULL);
threadGroup.interrupt_all();
threadGroup.join_all();
Shutdown();
}
else
{