Changeset View
Changeset View
Standalone View
Standalone View
src/init.cpp
Show First 20 Lines • Show All 209 Lines • ▼ Show 20 Lines | void Shutdown() { | ||||
StopREST(); | StopREST(); | ||||
StopRPC(); | StopRPC(); | ||||
StopHTTPServer(); | StopHTTPServer(); | ||||
g_wallet_init_interface->Flush(); | g_wallet_init_interface->Flush(); | ||||
StopMapPort(); | StopMapPort(); | ||||
// Because these depend on each-other, we make sure that neither can be | // Because these depend on each-other, we make sure that neither can be | ||||
// using the other before destroying them. | // using the other before destroying them. | ||||
if (peerLogic) { | |||||
UnregisterValidationInterface(peerLogic.get()); | UnregisterValidationInterface(peerLogic.get()); | ||||
} | |||||
if (g_connman) { | if (g_connman) { | ||||
g_connman->Stop(); | g_connman->Stop(); | ||||
} | } | ||||
peerLogic.reset(); | peerLogic.reset(); | ||||
g_connman.reset(); | g_connman.reset(); | ||||
StopTorControl(); | StopTorControl(); | ||||
▲ Show 20 Lines • Show All 2,165 Lines • Show Last 20 Lines |