aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWladimir J. van der Laan <laanwj@gmail.com>2016-01-08 17:33:50 +0100
committerWladimir J. van der Laan <laanwj@gmail.com>2016-01-08 17:33:59 +0100
commit9265e89a7778d37065f7018979d75805073b41c6 (patch)
tree8e8472fb2bc51c801308ec0970f6a6fbb3f5a60a
parent1320300ea11f3e9f3c30592eb19ebc47f5ef4abd (diff)
parentdaa8da281be74c741bd4da0434f0a1acc10a9179 (diff)
downloadbitcoin-9265e89a7778d37065f7018979d75805073b41c6.tar.xz
Merge pull request #7318
daa8da2 Backport: quickfix for RPC timer interface problem (Jonas Schnelli)
-rw-r--r--src/rpcserver.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rpcserver.cpp b/src/rpcserver.cpp
index bc419d14d9..de60bb6b1e 100644
--- a/src/rpcserver.cpp
+++ b/src/rpcserver.cpp
@@ -563,7 +563,7 @@ void RPCRunLater(const std::string& name, boost::function<void(void)> func, int6
if (timerInterfaces.empty())
throw JSONRPCError(RPC_INTERNAL_ERROR, "No timer handler registered for RPC");
deadlineTimers.erase(name);
- RPCTimerInterface* timerInterface = timerInterfaces[0];
+ RPCTimerInterface* timerInterface = timerInterfaces.back();
LogPrint("rpc", "queue run of timer %s in %i seconds (using %s)\n", name, nSeconds, timerInterface->Name());
deadlineTimers.insert(std::make_pair(name, boost::shared_ptr<RPCTimerBase>(timerInterface->NewTimer(func, nSeconds*1000))));
}