1
0
mirror of https://github.com/Mrs4s/MiraiGo.git synced 2025-05-04 11:07:40 +08:00

fix: dynamic packet decode.

This commit is contained in:
Mrs4s 2021-09-16 19:31:36 +08:00
parent e1502ecb48
commit 0238b2382b
No known key found for this signature in database
GPG Key ID: 3186E98FA19CE3A7

View File

@ -229,7 +229,7 @@ func (c *QQClient) netLoop() {
info, ok := c.handlers.LoadAndDelete(pkt.SequenceId)
var decoded interface{}
decoded = pkt.Payload
if info != nil && !info.dynamic {
if info == nil || !info.dynamic {
decoded, err = decoder(c, &incomingPacketInfo{
SequenceId: pkt.SequenceId,
CommandName: pkt.CommandName,