diff options
author | Jonas Schnelli <dev@jonasschnelli.ch> | 2016-01-08 11:09:34 +0100 |
---|---|---|
committer | Jonas Schnelli <dev@jonasschnelli.ch> | 2016-01-08 11:09:34 +0100 |
commit | daa8da281be74c741bd4da0434f0a1acc10a9179 (patch) | |
tree | 7c63db61b9c7f36cd1148417356a0d4077daeae9 /src/rpcserver.cpp | |
parent | ff9b610026067755b1d766c13a212734d96757ea (diff) |
Backport: quickfix for RPC timer interface problem
Diffstat (limited to 'src/rpcserver.cpp')
-rw-r--r-- | src/rpcserver.cpp | 2 |
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)))); } |