modify remote

This commit is contained in:
zhouyuyan
2017-09-05 13:52:53 +08:00
parent 18d18738be
commit 43a6bb8c5d
3 changed files with 22 additions and 6 deletions

View File

@@ -401,7 +401,7 @@ func (c *client) ProcessUnSubscribe(packet *packets.UnsubscribePacket) {
func (c *client) unsubscribe(sub *subscription) {
if c.typ == CLIENT {
delete(c.subs, string(sub.topic))
delete(c.subs, sub.topic)
}
if c.broker != nil {