| Index: mojo/message_pump/message_pump_mojo.cc
|
| diff --git a/mojo/message_pump/message_pump_mojo.cc b/mojo/message_pump/message_pump_mojo.cc
|
| index accd345f1c1f1b7dbba737764d9ac3508f92bf5d..471a0ad8332741702f947edc443e12cf78a0e3f0 100644
|
| --- a/mojo/message_pump/message_pump_mojo.cc
|
| +++ b/mojo/message_pump/message_pump_mojo.cc
|
| @@ -205,7 +205,6 @@ bool MessagePumpMojo::DoInternalWork(const RunState& run_state, bool block) {
|
| }
|
| } else {
|
| switch (result) {
|
| - case MOJO_RESULT_CANCELLED:
|
| case MOJO_RESULT_FAILED_PRECONDITION:
|
| RemoveInvalidHandle(*run_state_->wait_state, result,
|
| wait_many_result.index);
|
| @@ -213,6 +212,11 @@ bool MessagePumpMojo::DoInternalWork(const RunState& run_state, bool block) {
|
| case MOJO_RESULT_DEADLINE_EXCEEDED:
|
| did_work = false;
|
| break;
|
| + case MOJO_RESULT_INVALID_ARGUMENT:
|
| + case MOJO_RESULT_CANCELLED:
|
| + case MOJO_RESULT_BUSY:
|
| + // These results indicate a bug in "our" code (e.g., race conditions).
|
| + // Fall through.
|
| default:
|
| base::debug::Alias(&result);
|
| // Unexpected result is likely fatal, crash so we can determine cause.
|
|
|