Skip to content

Commit

Permalink
Fix logic bug in FDWatcher wait()
Browse files Browse the repository at this point in the history
  • Loading branch information
blakejohnson committed Sep 11, 2013
1 parent 4845bbc commit 3badc46
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion base/poll.jl
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ function _wait(fdw::FDWatcher,readable,writable)
end
while true
events = wait(fdw.notify)
if isa(events, FDEvent) && ((isreadable(events) == readable) || (iswritable(events) == writable))
if isa(events, FDEvent) && ((readable && isreadable(events)) || (writable && iswritable(events)))
break
end
end
Expand Down

0 comments on commit 3badc46

Please sign in to comment.