1
0
mirror of https://github.com/fumiama/water.git synced 2026-06-06 10:40:28 +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.rate.update(uint64(packetSize))
return n, nil
case windows.ERROR_NO_MORE_ITEMS:
if !shouldSpin || uint64(nanotime()-start) >= spinloopDuration {
w.mu.Unlock()