mirror of
https://github.com/fumiama/WireGold.git
synced 2026-06-26 13:57:47 +08:00
fix: async wait
This commit is contained in:
@@ -101,6 +101,7 @@ func (p *Packet) Unmarshal(data []byte) (complete bool, err error) {
|
||||
|
||||
if p.rembytes > 0 {
|
||||
p.rembytes -= copy(p.Data[flags<<3:], data[60:])
|
||||
logrus.Debugln("[packet] copied frag", hex.EncodeToString(p.Hash[:]), "rembytes:", p.rembytes)
|
||||
}
|
||||
|
||||
complete = p.rembytes == 0
|
||||
|
||||
Reference in New Issue
Block a user