From ce4097f049aaf31393a1d44facbd3abf3d7056bc Mon Sep 17 00:00:00 2001 From: Peter Hatina Date: Wed, 21 Mar 2012 20:12:52 +0100 Subject: fix disconnect signal sending --- SpiceXPI/src/plugin/plugin.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'SpiceXPI/src') diff --git a/SpiceXPI/src/plugin/plugin.cpp b/SpiceXPI/src/plugin/plugin.cpp index 4dc1121..25a098b 100644 --- a/SpiceXPI/src/plugin/plugin.cpp +++ b/SpiceXPI/src/plugin/plugin.cpp @@ -684,7 +684,8 @@ void nsPluginInstance::Show() void nsPluginInstance::Disconnect() { - kill(m_pid_controller, SIGTERM); + if (m_pid_controller > 0) + kill(m_pid_controller, SIGTERM); } void nsPluginInstance::ConnectedStatus(PRInt32 *retval) -- cgit v1.2.3