summaryrefslogtreecommitdiffhomepage
path: root/conn/bind_windows.go
diff options
context:
space:
mode:
Diffstat (limited to 'conn/bind_windows.go')
-rw-r--r--conn/bind_windows.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/conn/bind_windows.go b/conn/bind_windows.go
index a25c7aa..fdd1c24 100644
--- a/conn/bind_windows.go
+++ b/conn/bind_windows.go
@@ -197,6 +197,9 @@ func (ring *ringBuffer) CloseAndZero() {
windows.VirtualFree(ring.packets, 0, windows.MEM_RELEASE)
ring.packets = 0
}
+ ring.head = 0
+ ring.tail = 0
+ ring.isFull = false
}
func (bind *afWinRingBind) CloseAndZero() {