From 14d741fe938331ab2c4e141bdb01d7cd913081c2 Mon Sep 17 00:00:00 2001 From: Mrs4s <1844812067@qq.com> Date: Mon, 27 Jul 2020 04:33:06 +0800 Subject: [PATCH] update. --- client/client.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/client/client.go b/client/client.go index 44b68483..fc5186dd 100644 --- a/client/client.go +++ b/client/client.go @@ -679,6 +679,11 @@ func (c *QQClient) loop() { retry = 0 //fmt.Println(pkt.CommandName) go func() { + defer func() { + if pan := recover(); pan != nil { + // + } + }() decoder, ok := c.decoders[pkt.CommandName] if !ok { if f, ok := c.handlers[pkt.SequenceId]; ok {