Chromium Code Reviews| Index: mojo/edk/system/routed_raw_channel.cc |
| diff --git a/mojo/edk/system/routed_raw_channel.cc b/mojo/edk/system/routed_raw_channel.cc |
| index 825fc2fac30d36b2982b4a497fed78c98d07d893..3c10b973a59064b1b7c8cb2bfd90b8b5bad66ecc 100644 |
| --- a/mojo/edk/system/routed_raw_channel.cc |
| +++ b/mojo/edk/system/routed_raw_channel.cc |
| @@ -132,8 +132,11 @@ void RoutedRawChannel::OnReadMessage( |
| void RoutedRawChannel::OnError(Error error) { |
| DCHECK(internal::g_io_thread_task_runner->RunsTasksOnCurrentThread()); |
| - channel_->Shutdown(); |
| - channel_ = nullptr; |
| + if (error != ERROR_WRITE) { |
|
yzshen1
2015/12/15 03:06:01
It seems nice to add comment for it.
jam
2015/12/15 04:22:31
Sure will do in a followup
|
| + channel_->Shutdown(); |
| + channel_ = nullptr; |
| + } |
| + |
| if (routes_.empty()) { |
| delete this; |
| return; |