Bugfix: RPC: Add missing UnregisterHTTPHandler for /wallet/

pull/12610/head
Luke Dashjr 7 years ago committed by Jonas Schnelli
parent 85d5319716
commit d558f44c58
No known key found for this signature in database
GPG Key ID: 1EB776BB03C7922D

@ -252,6 +252,9 @@ void StopHTTPRPC()
{ {
LogPrint(BCLog::RPC, "Stopping HTTP RPC server\n"); LogPrint(BCLog::RPC, "Stopping HTTP RPC server\n");
UnregisterHTTPHandler("/", true); UnregisterHTTPHandler("/", true);
#ifdef ENABLE_WALLET
UnregisterHTTPHandler("/wallet/", false);
#endif
if (httpRPCTimerInterface) { if (httpRPCTimerInterface) {
RPCUnsetTimerInterface(httpRPCTimerInterface.get()); RPCUnsetTimerInterface(httpRPCTimerInterface.get());
httpRPCTimerInterface.reset(); httpRPCTimerInterface.reset();

Loading…
Cancel
Save