Skip to content

Commit aca60b8

Browse files
yxq33cn
yxq
authored andcommitted
fix: close pubsub
1 parent a3d45a7 commit aca60b8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

system/p2p/dht/p2p.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ func (p *P2P) CloseP2P() {
204204

205205
protocol.ClearEventHandler()
206206
if !p.isRestart() {
207-
p.mgr.PubSub.Unsub(p.subChan)
207+
p.mgr.PubSub.Shutdown()
208208

209209
}
210210
p.host.Close()

0 commit comments

Comments
 (0)