diff --git a/eventloop_unix.go b/eventloop_unix.go index f3082f14f..e8c8eab92 100644 --- a/eventloop_unix.go +++ b/eventloop_unix.go @@ -100,7 +100,7 @@ func (el *eventloop) open(c *conn) error { } if !c.outboundBuffer.IsEmpty() { - if err := el.poller.AddWrite(&c.pollAttachment); err != nil { + if err := el.poller.ModReadWrite(&c.pollAttachment); err != nil { return err } }