Skip to content
Browse files
Merge pull request #7318
daa8da2 Backport: quickfix for RPC timer interface problem (Jonas Schnelli)
  • Loading branch information
laanwj committed Jan 8, 2016
2 parents 1320300 + daa8da2 commit 9265e89a7778d37065f7018979d75805073b41c6
Showing 1 changed file with 1 addition and 1 deletion.
@@ -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");
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))));

0 comments on commit 9265e89

Please sign in to comment.