summaryrefslogtreecommitdiffstats
path: root/ipc/ipc_sync_channel.cc
diff options
context:
space:
mode:
Diffstat (limited to 'ipc/ipc_sync_channel.cc')
-rw-r--r--ipc/ipc_sync_channel.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/ipc/ipc_sync_channel.cc b/ipc/ipc_sync_channel.cc
index 2763ebd32..b9dc2c5 100644
--- a/ipc/ipc_sync_channel.cc
+++ b/ipc/ipc_sync_channel.cc
@@ -323,13 +323,13 @@ bool SyncChannel::SyncContext::OnMessageReceived(const Message& msg) {
if (TryToUnblockListener(&msg))
return true;
- if (msg.should_unblock()) {
- received_sync_msgs_->QueueMessage(msg, this);
+ if (msg.is_reply()) {
+ received_sync_msgs_->QueueReply(msg, this);
return true;
}
- if (msg.is_reply()) {
- received_sync_msgs_->QueueReply(msg, this);
+ if (msg.should_unblock()) {
+ received_sync_msgs_->QueueMessage(msg, this);
return true;
}