Kaynağa Gözat

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

This ensures that messages are sent in order.
Andreas Kling 5 yıl önce
ebeveyn
işleme
ea4e02ed86
1 değiştirilmiş dosya ile 1 ekleme ve 0 silme
  1. 1 0
      Libraries/LibCore/CoreIPCServer.h

+ 1 - 0
Libraries/LibCore/CoreIPCServer.h

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