mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
p2p/testing: prevent goroutine leak in ProtocolTester
This commit is contained in:
parent
5cd0059892
commit
9b5b561d65
1 changed files with 1 additions and 0 deletions
|
|
@ -110,6 +110,7 @@ func NewProtocolTester(prvkey *ecdsa.PrivateKey, nodeCount int, run func(*p2p.Pe
|
|||
// Stop stops the p2p server
|
||||
func (t *ProtocolTester) Stop() {
|
||||
t.Server.Stop()
|
||||
t.network.Shutdown()
|
||||
}
|
||||
|
||||
// Connect brings up the remote peer node and connects it using the
|
||||
|
|
|
|||
Loading…
Reference in a new issue