summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--conn/bind_windows.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/conn/bind_windows.go b/conn/bind_windows.go
index 42208b1..d744987 100644
--- a/conn/bind_windows.go
+++ b/conn/bind_windows.go
@@ -357,6 +357,7 @@ func (bind *afWinRingBind) Receive(buf []byte, isOpen *uint32) (int, Endpoint, e
var count uint32
var results [1]winrio.Result
retry:
+ count = 0
for tries := 0; count == 0 && tries < receiveSpins; tries++ {
if tries > 0 {
if atomic.LoadUint32(isOpen) != 1 {