mirror of
https://github.com/fhmq/hmq.git
synced 2026-04-24 10:38:34 +00:00
fix broker out painc
This commit is contained in:
@@ -527,7 +527,7 @@ func (c *client) Close() {
|
||||
}
|
||||
|
||||
func (c *client) WriterPacket(packet packets.ControlPacket) error {
|
||||
if packet == nil {
|
||||
if c == nil || packet == nil {
|
||||
return nil
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user