Browse Source

qt: PeerTableModel: Fix potential deadlock. #4296

0.10
Ashley Holman 10 years ago
parent
commit
b917555b04
No known key found for this signature in database
GPG Key ID: 355F3F09712DAB32
  1. 4
      src/qt/peertablemodel.cpp

4
src/qt/peertablemodel.cpp

@ -49,8 +49,8 @@ public: @@ -49,8 +49,8 @@ public:
/** Pull a full list of peers from vNodes into our cache */
void refreshPeers() {
TRY_LOCK(cs_vNodes, lockNodes);
{
TRY_LOCK(cs_vNodes, lockNodes);
if (!lockNodes)
{
// skip the refresh if we can't immediately get the lock
@ -70,8 +70,8 @@ public: @@ -70,8 +70,8 @@ public:
}
// if we can, retrieve the CNodeStateStats for each node.
TRY_LOCK(cs_main, lockMain);
{
TRY_LOCK(cs_main, lockMain);
if (lockMain)
{
BOOST_FOREACH(CNodeCombinedStats &stats, cachedNodeStats)

Loading…
Cancel
Save