[Spice-commits] SpiceXPI/src
Peter Hatina
phatina at kemper.freedesktop.org
Wed Mar 21 12:14:04 PDT 2012
SpiceXPI/src/plugin/plugin.cpp | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
New commits:
commit ce4097f049aaf31393a1d44facbd3abf3d7056bc
Author: Peter Hatina <phatina at redhat.com>
Date: Wed Mar 21 20:12:52 2012 +0100
fix disconnect signal sending
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)
More information about the Spice-commits
mailing list