aboutsummaryrefslogtreecommitdiff
path: root/src/httprpc.cpp
diff options
context:
space:
mode:
authorLuke Dashjr <luke-jr+git@utopios.org>2017-12-14 03:13:34 +0000
committerJonas Schnelli <dev@jonasschnelli.ch>2018-03-06 12:03:26 +0800
commitd558f44c58b61671899d6ef897df271de3f4f20a (patch)
treee3d426e1b88e1b497e6a593b17eec40d3372ecca /src/httprpc.cpp
parent85d5319716b7b31b27bc7950d756465ae472f11d (diff)
Bugfix: RPC: Add missing UnregisterHTTPHandler for /wallet/
Diffstat (limited to 'src/httprpc.cpp')
-rw-r--r--src/httprpc.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/httprpc.cpp b/src/httprpc.cpp
index 5e9e419744..0abab55b5b 100644
--- a/src/httprpc.cpp
+++ b/src/httprpc.cpp
@@ -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();