diff options
-rw-r--r-- | SpiceXPI/src/plugin/plugin.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
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) |