Skip to content

Commit

Permalink
fix: close pubsub
Browse files Browse the repository at this point in the history
  • Loading branch information
yxq authored and 33cn committed Aug 3, 2021
1 parent a3d45a7 commit aca60b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion system/p2p/dht/p2p.go
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ func (p *P2P) CloseP2P() {

protocol.ClearEventHandler()
if !p.isRestart() {
p.mgr.PubSub.Unsub(p.subChan)
p.mgr.PubSub.Shutdown()

}
p.host.Close()
Expand Down

0 comments on commit aca60b8

Please sign in to comment.