Commit 9bc5c519 authored by Jeremy Soller's avatar Jeremy Soller

Fix mistaken use of flags

parent 1fc5ebd7
......@@ -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,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment