Merge pull request #2606 from gavinandresen/threadfix

Exit cleanly if AppInit2 returns false
This commit is contained in:
Pieter Wuille
2013-05-04 07:43:15 -07:00
2 changed files with 6 additions and 3 deletions

View File

@@ -282,6 +282,9 @@ int main(int argc, char *argv[])
}
else
{
threadGroup.interrupt_all();
threadGroup.join_all();
Shutdown();
return 1;
}
} catch (std::exception& e) {