diff options
| author | Jonas Schnelli <[email protected]> | 2016-01-08 11:03:52 +0100 |
|---|---|---|
| committer | Jonas Schnelli <[email protected]> | 2016-01-08 11:18:28 +0100 |
| commit | 8a7f0001be88122256b1a8dc29b066210dc85625 (patch) | |
| tree | 02d35c01a5d68c8aa54662cbf0f0acec0681f1f2 /src/httprpc.cpp | |
| parent | Fix RPCTimerInterface ordering issue (diff) | |
| download | discoin-8a7f0001be88122256b1a8dc29b066210dc85625.tar.xz discoin-8a7f0001be88122256b1a8dc29b066210dc85625.zip | |
[RPC] remove the option of having multiple timer interfaces
Diffstat (limited to 'src/httprpc.cpp')
| -rw-r--r-- | src/httprpc.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/httprpc.cpp b/src/httprpc.cpp index 2920aa26f..1466dc0cb 100644 --- a/src/httprpc.cpp +++ b/src/httprpc.cpp @@ -226,7 +226,7 @@ bool StartHTTPRPC() assert(EventBase()); httpRPCTimerInterface = new HTTPRPCTimerInterface(EventBase()); - RPCRegisterTimerInterface(httpRPCTimerInterface); + RPCSetTimerInterface(httpRPCTimerInterface); return true; } @@ -240,7 +240,7 @@ void StopHTTPRPC() LogPrint("rpc", "Stopping HTTP RPC server\n"); UnregisterHTTPHandler("/", true); if (httpRPCTimerInterface) { - RPCUnregisterTimerInterface(httpRPCTimerInterface); + RPCUnsetTimerInterface(httpRPCTimerInterface); delete httpRPCTimerInterface; httpRPCTimerInterface = 0; } |