p2p: refactor Switch#OnStop (#3729)

This commit is contained in:
Runchao Han
2019-06-17 21:30:12 +10:00
committed by Anton Kaliaev
parent 0e1c492d3e
commit ed18ffdca3
2 changed files with 1 additions and 6 deletions

View File

@@ -714,7 +714,6 @@ func (n *Node) OnStop() {
n.indexerService.Stop()
// now stop the reactors
// TODO: gracefully disconnect from peers.
n.sw.Stop()
// stop mempool WAL