mirror of
https://github.com/jwinterm/myriadcoin.git
synced 2026-12-06 13:04:09 +01:00
Don't call exit() in Shutdown() for Bitcoin-Qt (fixes a tray-icon issue)
(partial of 9247134eab)
This commit is contained in:
committed by
Luke Dashjr
parent
a973e225e7
commit
0b1fda6f65
@@ -66,7 +66,10 @@ void Shutdown(void* parg)
|
||||
Sleep(50);
|
||||
printf("Bitcoin exiting\n\n");
|
||||
fExit = true;
|
||||
#ifndef QT_GUI
|
||||
// ensure non UI client get's exited here, but let Bitcoin-Qt reach return 0; in bitcoin.cpp
|
||||
exit(0);
|
||||
#endif
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
@@ -208,6 +208,7 @@ int main(int argc, char *argv[])
|
||||
window.hide();
|
||||
guiref = 0;
|
||||
}
|
||||
// Shutdown the core and it's threads, but don't exit Bitcoin-Qt here
|
||||
Shutdown(NULL);
|
||||
}
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user