mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-25 13:35:54 +00:00
Grr! These are way too easy to do by mistake. The following code does nothing useful:
ScopedLock(theApp->getMasterLock()); Must be: ScopedLock sl(theApp->getMasterLock());
This commit is contained in:
@@ -600,7 +600,7 @@ void NetworkOPs::checkState(const boost::system::error_code& result)
|
||||
}
|
||||
|
||||
{
|
||||
ScopedLock(theApp->getMasterLock());
|
||||
ScopedLock sl(theApp->getMasterLock());
|
||||
|
||||
std::vector<Peer::pointer> peerList = theApp->getConnectionPool().getPeerVector();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user