diff options
author | Peter Hatina <phatina@redhat.com> | 2012-03-21 20:12:52 +0100 |
---|---|---|
committer | Peter Hatina <phatina@redhat.com> | 2012-03-21 20:12:52 +0100 |
commit | ce4097f049aaf31393a1d44facbd3abf3d7056bc (patch) | |
tree | 36679702dd276111bfa3ae0b1d086293b6909ac0 /SpiceXPI/src | |
parent | a327e9167996c480c0c651a79c3e1787eb717769 (diff) |
fix disconnect signal sending
Diffstat (limited to 'SpiceXPI/src')
-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) |