Skip to content

Commit

Permalink
fix Issue #16
Browse files Browse the repository at this point in the history
  • Loading branch information
ruizeng committed Dec 31, 2015
1 parent e18c541 commit 46e63b2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/mqtt/connection.go
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ func (c *Connection) Close() {
}
if c.SendChan != nil {
close(c.SendChan)
c.SendChan = nil
}
c.Mgr.DelConn(deviceid)
c.Mgr.Provider.OnDeviceOffline(deviceid)
Expand Down

0 comments on commit 46e63b2

Please sign in to comment.