summaryrefslogtreecommitdiffstats
path: root/ipc/ipc_channel_posix.cc
diff options
context:
space:
mode:
Diffstat (limited to 'ipc/ipc_channel_posix.cc')
-rw-r--r--ipc/ipc_channel_posix.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/ipc/ipc_channel_posix.cc b/ipc/ipc_channel_posix.cc
index 24d11f4..ac238ba 100644
--- a/ipc/ipc_channel_posix.cc
+++ b/ipc/ipc_channel_posix.cc
@@ -905,6 +905,8 @@ void Channel::ChannelImpl::OnFileCanReadWithoutBlocking(int fd) {
if (!ProcessIncomingMessages()) {
Close();
listener_->OnChannelError();
+ // The OnChannelError() call may delete this, so we need to exit now.
+ return;
}
}