]> Git Repo - VerusCoin.git/commitdiff
fix lock issue for QT node diconnect and RPC disconnectnode
authorJonas Schnelli <[email protected]>
Fri, 19 Jun 2015 14:32:22 +0000 (16:32 +0200)
committerJack Grigg <[email protected]>
Thu, 2 Mar 2017 21:23:03 +0000 (13:23 -0800)
Zcash: only RPC disconnectnode

src/rpcnet.cpp

index 36c49720e90cee0906e36a84d4f55f4c1677270c..8eb2ef84d11cee029da2db5d68e43dd135eaf57b 100644 (file)
@@ -231,7 +231,7 @@ UniValue disconnectnode(const UniValue& params, bool fHelp)
     if (pNode == NULL)
         throw JSONRPCError(RPC_CLIENT_NODE_NOT_CONNECTED, "Node not found in connected nodes");
 
-    pNode->CloseSocketDisconnect();
+    pNode->fDisconnect = true;
 
     return NullUniValue;
 }
@@ -520,7 +520,7 @@ UniValue setban(const UniValue& params, bool fHelp)
 
         //disconnect possible nodes
         while(CNode *bannedNode = (isSubnet ? FindNode(subNet) : FindNode(netAddr)))
-            bannedNode->CloseSocketDisconnect();
+            bannedNode->fDisconnect = true;
     }
     else if(strCommand == "remove")
     {
This page took 0.027104 seconds and 4 git commands to generate.