summaryrefslogtreecommitdiff
path: root/SpiceXPI/src
diff options
context:
space:
mode:
authorPeter Hatina <phatina@redhat.com>2012-03-21 20:12:52 +0100
committerPeter Hatina <phatina@redhat.com>2012-03-21 20:12:52 +0100
commitce4097f049aaf31393a1d44facbd3abf3d7056bc (patch)
tree36679702dd276111bfa3ae0b1d086293b6909ac0 /SpiceXPI/src
parenta327e9167996c480c0c651a79c3e1787eb717769 (diff)
fix disconnect signal sending
Diffstat (limited to 'SpiceXPI/src')
-rw-r--r--SpiceXPI/src/plugin/plugin.cpp3
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)