summaryrefslogtreecommitdiffhomepage
path: root/pkg/waiter/waiter.go
diff options
context:
space:
mode:
authorBrian Geffon <bgeffon@google.com>2018-05-24 15:45:55 -0700
committerShentubot <shentubot@google.com>2018-05-24 15:46:50 -0700
commita8b90a7158d4197428639c912d97f3bdbaf63f5a (patch)
tree9231803fe00925d4e33a784fe4187c79b5517d23 /pkg/waiter/waiter.go
parent7f62e9c32ea6af19ccd92107252fd869e6ef1005 (diff)
Poll should wake up on ECONNREFUSED with no mask.
Today poll will not wake up on a ECONNREFUSED if no poll mask is specified, which is equivalent to POLLHUP | POLLERR which are implicitly added during the poll syscall. PiperOrigin-RevId: 197967183 Change-Id: I668d0730c33701228913f2d0843b48491b642efb
Diffstat (limited to 'pkg/waiter/waiter.go')
-rw-r--r--pkg/waiter/waiter.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/waiter/waiter.go b/pkg/waiter/waiter.go
index 56f53f9c3..ab39fa002 100644
--- a/pkg/waiter/waiter.go
+++ b/pkg/waiter/waiter.go
@@ -174,7 +174,7 @@ func (q *Queue) Notify(mask EventMask) {
q.mu.RLock()
for it := q.list.Front(); it != nil; it = it.Next() {
e := it.(*Entry)
- if (mask & e.mask) != 0 {
+ if mask&e.mask != 0 {
e.Callback.Callback(e)
}
}