1
0
mirror of https://github.com/fumiama/water.git synced 2026-06-18 09:40:42 +08:00

fix err judge

This commit is contained in:
fumiama
2021-12-31 21:36:26 +08:00
parent 660c289238
commit 69e328bbf2

View File

@@ -401,6 +401,7 @@ RETRY:
} }
w.s.ReleaseReceivePacket(packet) w.s.ReleaseReceivePacket(packet)
w.rate.update(uint64(packetSize)) w.rate.update(uint64(packetSize))
return n, nil
case windows.ERROR_NO_MORE_ITEMS: case windows.ERROR_NO_MORE_ITEMS:
if !shouldSpin || uint64(nanotime()-start) >= spinloopDuration { if !shouldSpin || uint64(nanotime()-start) >= spinloopDuration {
w.mu.Unlock() w.mu.Unlock()