Add missed lock
authorsvost <svost@users.noreply.github.com>
Wed, 8 Feb 2017 09:24:34 +0000 (13:24 +0400)
committerGitHub <noreply@github.com>
Wed, 8 Feb 2017 09:24:34 +0000 (13:24 +0400)
src/net.cpp

index 4cbe70e..91e4352 100644 (file)
@@ -720,6 +720,7 @@ CCriticalSection CNode::cs_setBanned;
 
 void CNode::ClearBanned()
 {
+    LOCK(cs_setBanned);
     setBanned.clear();
 }