mirror of
https://github.com/fhmq/hmq.git
synced 2026-04-26 11:38:33 +00:00
close
This commit is contained in:
@@ -429,6 +429,9 @@ func (c *client) Close() {
|
||||
log.Error("closed client but remove sublist error, ", err)
|
||||
}
|
||||
}
|
||||
if c.typ == CLIENT {
|
||||
b.BroadcastUnSubscribe(subs)
|
||||
}
|
||||
if c.info.willMsg != nil {
|
||||
b.ProcessPublishMessage(c.info.willMsg)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user