diff options
| author | Jonas Schnelli <[email protected]> | 2015-06-19 16:32:22 +0200 |
|---|---|---|
| committer | Jonas Schnelli <[email protected]> | 2015-06-19 16:32:22 +0200 |
| commit | 1c043d567230d639fa86afb96575689bfc8abdcd (patch) | |
| tree | 8af62d8454edb480c9f1ade5f0e875bae8d61b02 /src/rpcnet.cpp | |
| parent | setban: add IPv6 tests (diff) | |
| download | discoin-1c043d567230d639fa86afb96575689bfc8abdcd.tar.xz discoin-1c043d567230d639fa86afb96575689bfc8abdcd.zip | |
fix lock issue for QT node diconnect and RPC disconnectnode
Diffstat (limited to 'src/rpcnet.cpp')
| -rw-r--r-- | src/rpcnet.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rpcnet.cpp b/src/rpcnet.cpp index 5a26c7c3a..1572b1668 100644 --- a/src/rpcnet.cpp +++ b/src/rpcnet.cpp @@ -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; } @@ -519,7 +519,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") { |