Fix mistaken use of flags

This commit is contained in:
Jeremy Soller
2018-05-20 13:40:14 -06:00
parent 1fc5ebd797
commit 9bc5c5197e
+1 -1
View File
@@ -92,7 +92,7 @@ fn main() {
}
for (handle_id, handle) in scheme.handles.iter() {
if handle.flags & EVENT_READ != 0 {
if handle.events & EVENT_READ != 0 {
if let Some(count) = scheme.can_read(*handle_id) {
let event_packet = Packet {
id: 0,