1
0
mirror of https://github.com/Mrs4s/MiraiGo.git synced 2025-05-04 19:17:38 +08:00

fix stat error.

This commit is contained in:
Mrs4s 2020-11-23 14:12:52 +08:00
parent 54bd3de38b
commit c134dbea50

View File

@ -1046,9 +1046,9 @@ func (c *QQClient) nextHighwayApplySeq() int32 {
func (c *QQClient) send(pkt []byte) error { func (c *QQClient) send(pkt []byte) error {
_, err := c.Conn.Write(pkt) _, err := c.Conn.Write(pkt)
if err != nil { if err != nil {
c.stat.PacketSent++
} else {
c.stat.PacketLost++ c.stat.PacketLost++
} else {
c.stat.PacketSent++
} }
return err return err
} }