Index: mojo/edk/system/raw_channel.cc |
diff --git a/mojo/edk/system/raw_channel.cc b/mojo/edk/system/raw_channel.cc |
index 34f0c1c7445c94b8673a12ab518124b65b6ec57b..5d0a04c47273dfddbfaa8c02f66bac8b4bd11205 100644 |
--- a/mojo/edk/system/raw_channel.cc |
+++ b/mojo/edk/system/raw_channel.cc |
@@ -649,7 +649,8 @@ void RawChannel::DispatchMessages(bool* did_dispatch_message, |
return; // |this| may have been destroyed in |CallOnError()|. |
} |
- if (message_view.type() != MessageInTransit::Type::MESSAGE) { |
+ if (message_view.type() != MessageInTransit::Type::MESSAGE && |
+ message_view.type() != MessageInTransit::Type::QUIT_MESSAGE) { |
if (!OnReadMessageForRawChannel(message_view)) { |
CallOnError(Delegate::ERROR_READ_BAD_MESSAGE); |
*stop_dispatching = true; |