aboutsummaryrefslogtreecommitdiff
path: root/src/httprpc.cpp
diff options
context:
space:
mode:
authorLuke Dashjr <[email protected]>2017-12-14 03:13:34 +0000
committerJonas Schnelli <[email protected]>2018-03-06 12:03:26 +0800
commitd558f44c58b61671899d6ef897df271de3f4f20a (patch)
treee3d426e1b88e1b497e6a593b17eec40d3372ecca /src/httprpc.cpp
parentQt: Ensure UI updates only come from the currently selected walletView (diff)
downloaddiscoin-d558f44c58b61671899d6ef897df271de3f4f20a.tar.xz
discoin-d558f44c58b61671899d6ef897df271de3f4f20a.zip
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 5e9e41974..0abab55b5 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();