mirror of
https://github.com/RGBCube/serenity
synced 2025-05-30 06:15:06 +00:00
LibCore: Flush outgoing IPC messages before trying to send a new one
This ensures that messages are sent in order.
This commit is contained in:
parent
5efbb4ae95
commit
ea4e02ed86
1 changed files with 1 additions and 0 deletions
|
@ -93,6 +93,7 @@ namespace Server {
|
||||||
#if defined(CIPC_DEBUG)
|
#if defined(CIPC_DEBUG)
|
||||||
dbg() << "S: -> C " << int(message.type) << " extra " << extra_data.size();
|
dbg() << "S: -> C " << int(message.type) << " extra " << extra_data.size();
|
||||||
#endif
|
#endif
|
||||||
|
flush_outgoing_messages();
|
||||||
if (try_send_message(message, extra_data))
|
if (try_send_message(message, extra_data))
|
||||||
return;
|
return;
|
||||||
if (m_queue.size() >= max_queued_messages) {
|
if (m_queue.size() >= max_queued_messages) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue