Index: ipc/ipc_channel_posix.cc |
diff --git a/ipc/ipc_channel_posix.cc b/ipc/ipc_channel_posix.cc |
index bb1aa0568c8fb973df5949b717fb9a89dd7780d0..9d9b8d19990e87164a28a356729ec6eca470f5ac 100644 |
--- a/ipc/ipc_channel_posix.cc |
+++ b/ipc/ipc_channel_posix.cc |
@@ -1126,7 +1126,8 @@ bool Channel::Connect() { |
} |
void Channel::Close() { |
- channel_impl_->Close(); |
+ if (channel_impl_) |
+ channel_impl_->Close(); |
} |
void Channel::set_listener(Listener* listener) { |