From 99f367cc966bff34742038d12580b8bad30b1ee0 Mon Sep 17 00:00:00 2001 From: "michaeln@google.com" Date: Fri, 5 Sep 2008 01:17:29 +0000 Subject: Fix a crashing bug when shutting down the plugin process. Review URL: http://codereview.chromium.org/459 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1747 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/plugin/plugin_thread.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'chrome/plugin') diff --git a/chrome/plugin/plugin_thread.cc b/chrome/plugin/plugin_thread.cc index 25bd06d..acb179b 100644 --- a/chrome/plugin/plugin_thread.cc +++ b/chrome/plugin/plugin_thread.cc @@ -47,7 +47,7 @@ void PluginThread::OnChannelError() { } bool PluginThread::Send(IPC::Message* msg) { - return channel_->Send(msg); + return channel_.get() ? channel_->Send(msg) : false; } void PluginThread::OnMessageReceived(const IPC::Message& msg) { -- cgit v1.1