fix broker out painc

This commit is contained in:
zhouyuyan committed 2018-02-06 11:01:06 +08:00
1 parent 0ff20b6ee2
commit 47500910e1
1 file changed
+1 -1
+1 -1
View File
@@ -527,7 +527,7 @@ func (c *client) Close() {
} }
func (c *client) WriterPacket(packet packets.ControlPacket) error { func (c *client) WriterPacket(packet packets.ControlPacket) error {
if packet == nil { if c == nil || packet == nil {
return nil return nil
} }