From e2dbde6e770ac1a6cbba374590374fc62f900a39 Mon Sep 17 00:00:00 2001 From: bitshiftza <33934381+bitshiftza@users.noreply.github.com> Date: Wed, 19 Feb 2020 21:26:00 +0200 Subject: [PATCH] Fix index out of bounds error when removing a socket from a poller. (#272) --- poller.go | 1 + 1 file changed, 1 insertion(+) diff --git a/poller.go b/poller.go index 8096c0c..8b2b66a 100644 --- a/poller.go +++ b/poller.go @@ -73,6 +73,7 @@ func (p *Poller) Remove(reader *Sock) { } else { p.socks = append(p.socks[:i], p.socks[i+1:]...) } + return } } }