From 5b383d43b0708386aea228d673eb49939126f2ea Mon Sep 17 00:00:00 2001 From: JoelKatz Date: Thu, 21 Feb 2013 19:29:25 -0800 Subject: [PATCH] Fix a bug that could cause crashes. --- src/cpp/ripple/LedgerAcquire.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/cpp/ripple/LedgerAcquire.cpp b/src/cpp/ripple/LedgerAcquire.cpp index 352b1d2206..5d1e7c96e2 100644 --- a/src/cpp/ripple/LedgerAcquire.cpp +++ b/src/cpp/ripple/LedgerAcquire.cpp @@ -71,6 +71,8 @@ void PeerSet::TimerEntry(boost::weak_ptr wptr, const boost::system::err { if (result == boost::asio::error::operation_aborted) return; + + ScopedLock sl(theApp->getMasterLock()); boost::shared_ptr ptr = wptr.lock(); if (ptr) ptr->invokeOnTimer();