Commit b0011b48 authored by Jakob Otto's avatar Jakob Otto

Fix handle_write_event

parent 05460af7
......@@ -107,8 +107,10 @@ public:
}
return false;
};
while (write_some() && fetch_next_message())
; // nop
do {
if (!write_some())
return false;
} while (fetch_next_message());
return !packet_queue_.empty();
}
......
......@@ -114,8 +114,10 @@ public:
}
return false;
};
while (write_some() && fetch_next_message())
; // nop
do {
if (!write_some())
return false;
} while (fetch_next_message());
return !write_queue_.empty();
}
......
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