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:
parent
e1502ecb48
commit
0238b2382b
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user