Commit b47d3eaf authored by Jakob Otto's avatar Jakob Otto

Fix handle_write_event

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