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:
Andreas Kling 2019-11-04 10:51:25 +01:00
parent 5efbb4ae95
commit ea4e02ed86
Notes: sideshowbarker 2024-07-19 11:26:01 +09:00

View file

@ -93,6 +93,7 @@ namespace Server {
#if defined(CIPC_DEBUG)
dbg() << "S: -> C " << int(message.type) << " extra " << extra_data.size();
#endif
flush_outgoing_messages();
if (try_send_message(message, extra_data))
return;
if (m_queue.size() >= max_queued_messages) {