This commit is contained in:
zhouyuyan
2017-09-05 10:26:44 +08:00
parent 8af790ffba
commit 18d18738be
3 changed files with 17 additions and 0 deletions

View File

@@ -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)
}