diff options
| author | Wladimir J. van der Laan <[email protected]> | 2015-06-19 17:32:34 +0200 |
|---|---|---|
| committer | Wladimir J. van der Laan <[email protected]> | 2015-06-19 17:32:36 +0200 |
| commit | 7ecdcd99ca6c488378a82531f742ca3a6be5eaee (patch) | |
| tree | 952452c6cf7f9700cecc0389f389de245977598b /src/rpcnet.cpp | |
| parent | Merge pull request #6301 (diff) | |
| parent | fix lock issue for QT node diconnect and RPC disconnectnode (diff) | |
| download | discoin-7ecdcd99ca6c488378a82531f742ca3a6be5eaee.tar.xz discoin-7ecdcd99ca6c488378a82531f742ca3a6be5eaee.zip | |
Merge pull request #6307
1c043d5 fix lock issue for QT node diconnect and RPC disconnectnode (Jonas Schnelli)
932687b setban: add IPv6 tests (Jonas Schnelli)
62909f6 fix missing lock in CNode::ClearBanned() (Jonas Schnelli)
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") { |