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");
UnregisterHTTPHandler("/", true);
#ifdef ENABLE_WALLET
UnregisterHTTPHandler("/wallet/", false);
#endif
if (httpRPCTimerInterface) {
RPCUnsetTimerInterface(httpRPCTimerInterface.get());
httpRPCTimerInterface.reset();