Bugfix: RPC: Add missing UnregisterHTTPHandler for /wallet/

This commit is contained in:
Luke Dashjr 2017-12-14 03:13:34 +00:00 committed by Jonas Schnelli
parent 85d5319716
commit d558f44c58
No known key found for this signature in database
GPG Key ID: 1EB776BB03C7922D

View File

@ -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();