diff options
Diffstat (limited to 'ipc')
-rw-r--r-- | ipc/ipc_channel_posix.cc | 3 | ||||
-rw-r--r-- | ipc/ipc_channel_win.cc | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/ipc/ipc_channel_posix.cc b/ipc/ipc_channel_posix.cc index bb1aa05..9d9b8d1 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) { diff --git a/ipc/ipc_channel_win.cc b/ipc/ipc_channel_win.cc index bbb2eb9..981e4b6 100644 --- a/ipc/ipc_channel_win.cc +++ b/ipc/ipc_channel_win.cc @@ -462,7 +462,8 @@ bool Channel::Connect() { } void Channel::Close() { - channel_impl_->Close(); + if (channel_impl_) + channel_impl_->Close(); } void Channel::set_listener(Listener* listener) { |