Skip to content

Commit

Permalink
Fix index out of bounds error when removing a socket from a poller. (z…
Browse files Browse the repository at this point in the history
  • Loading branch information
bitshiftza authored Feb 19, 2020
1 parent 1bf6d4d commit e2dbde6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions poller.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ func (p *Poller) Remove(reader *Sock) {
} else {
p.socks = append(p.socks[:i], p.socks[i+1:]...)
}
return
}
}
}
Expand Down

0 comments on commit e2dbde6

Please sign in to comment.