瀏覽代碼

LibCore: Flush outgoing IPC messages before trying to send a new one

This ensures that messages are sent in order.
Andreas Kling 5 年之前
父節點
當前提交
ea4e02ed86
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      Libraries/LibCore/CoreIPCServer.h

+ 1 - 0
Libraries/LibCore/CoreIPCServer.h

@@ -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) {