Merge #11641: qa: Only allow disconnecting all NodeConns
commit7adeea3b0fc26025c06590125a48ce2651c66373
authorWladimir J. van der Laan <laanwj@gmail.com>
Tue, 14 Nov 2017 07:56:04 +0000 (14 08:56 +0100)
committerWladimir J. van der Laan <laanwj@gmail.com>
Tue, 14 Nov 2017 07:56:37 +0000 (14 08:56 +0100)
treee05cb13e84c54ec6ab71d2ffb754feeb2e5c585a
parentcbb54e77a120a69fc6faaecbdc4cf93915afb89c
parentfaaa7db25e94cf02818865e3d27707d6acaa1e25
Merge #11641: qa: Only allow disconnecting all NodeConns

faaa7db qa: Only allow disconnecting all NodeConns (MarcoFalke)

Pull request description:

  Disconnecting the connection with `index=0` makes no sense when there are more than one connections, as the list "rotates around" and populates index 0 after `del`.

  Just disconnect all NodeConns in any case.

Tree-SHA512: e5cf540823fccb31634b5a11501f54222be89862e80ccafc28bc06726480f8d2153b8c1b6f859fa6a6d087876251d48a6c6035bccdaaf16831e300bc17ff613d
test/functional/p2p-leaktests.py