void StartShutdown() { #ifdef QT_GUI // ensure we leave the Qt main loop for a clean GUI exit (Shutdown() is called in bitcoin.cpp afterwards) uiInterface.QueueShutdown(); #else // Without UI, Shutdown() can simply be started in a new thread CreateThread(Shutdown, NULL); #endif }
void StartShutdown() { LogPrintf("Calling start shutdown..."); if(fQtActive) // ensure we leave the Qt main loop for a clean GUI exit (Shutdown() is called in bitcoin.cpp afterwards) uiInterface.QueueShutdown(); else // Without UI, shutdown is initiated and shutdown() is called in AppInit fRequestShutdown = true; }