mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Fix a bug that could cause crashes.
This commit is contained in:
@@ -71,6 +71,8 @@ void PeerSet::TimerEntry(boost::weak_ptr<PeerSet> wptr, const boost::system::err
|
|||||||
{
|
{
|
||||||
if (result == boost::asio::error::operation_aborted)
|
if (result == boost::asio::error::operation_aborted)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
ScopedLock sl(theApp->getMasterLock());
|
||||||
boost::shared_ptr<PeerSet> ptr = wptr.lock();
|
boost::shared_ptr<PeerSet> ptr = wptr.lock();
|
||||||
if (ptr)
|
if (ptr)
|
||||||
ptr->invokeOnTimer();
|
ptr->invokeOnTimer();
|
||||||
|
|||||||
Reference in New Issue
Block a user