mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-12 15:09:59 +01:00
log start and end of Shutdown()
- could be helpful when debugging shutdown related problems
This commit is contained in:
@@ -100,6 +100,7 @@ static CCoinsViewDB *pcoinsdbview;
|
||||
|
||||
void Shutdown()
|
||||
{
|
||||
LogPrintf("Shutdown : In progress...\n");
|
||||
static CCriticalSection cs_Shutdown;
|
||||
TRY_LOCK(cs_Shutdown, lockShutdown);
|
||||
if (!lockShutdown) return;
|
||||
@@ -130,6 +131,7 @@ void Shutdown()
|
||||
UnregisterAllWallets();
|
||||
if (pwalletMain)
|
||||
delete pwalletMain;
|
||||
LogPrintf("Shutdown : done\n");
|
||||
}
|
||||
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user