diff options
-rw-r--r-- | ipc/ipc_channel_proxy.cc | 4 | ||||
-rw-r--r-- | ipc/ipc_channel_proxy.h | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/ipc/ipc_channel_proxy.cc b/ipc/ipc_channel_proxy.cc index 0668b15..0b2338c 100644 --- a/ipc/ipc_channel_proxy.cc +++ b/ipc/ipc_channel_proxy.cc @@ -173,6 +173,10 @@ void ChannelProxy::Context::OnChannelClosed() { Release(); } +void ChannelProxy::Context::Clear() { + listener_ = NULL; +} + // Called on the IPC::Channel thread void ChannelProxy::Context::OnSendMessage(scoped_ptr<Message> message) { if (!channel_.get()) { diff --git a/ipc/ipc_channel_proxy.h b/ipc/ipc_channel_proxy.h index cce35f7..9755e13 100644 --- a/ipc/ipc_channel_proxy.h +++ b/ipc/ipc_channel_proxy.h @@ -226,7 +226,7 @@ class IPC_EXPORT ChannelProxy : public Sender { // Called on the consumers thread when the ChannelProxy is closed. At that // point the consumer is telling us that they don't want to receive any // more messages, so we honor that wish by forgetting them! - virtual void Clear() { listener_ = NULL; } + virtual void Clear(); private: friend class ChannelProxy; |