[virt-tools-list] [virt-manager PATCH] virt-manager: close the SPICE main channel on an AUTH error
Giuseppe Scrivano
gscrivan at redhat.com
Tue Oct 21 13:45:28 UTC 2014
Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1152981
Signed-off-by: Giuseppe Scrivano <gscrivan at redhat.com>
---
virtManager/console.py | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/virtManager/console.py b/virtManager/console.py
index 67bfe10..030a5c1 100644
--- a/virtManager/console.py
+++ b/virtManager/console.py
@@ -405,6 +405,10 @@ class SpiceViewer(Viewer):
self.console.disconnected()
elif event == SpiceClientGLib.ChannelEvent.ERROR_AUTH:
self.console.activate_auth_page()
+ for i in self._main_channel_hids:
+ self.main_channel.handler_disconnect(i)
+ self._main_channel_hids = []
+ self.main_channel = None
elif event in [SpiceClientGLib.ChannelEvent.ERROR_CONNECT,
SpiceClientGLib.ChannelEvent.ERROR_IO,
SpiceClientGLib.ChannelEvent.ERROR_LINK,
--
1.9.3
More information about the virt-tools-list
mailing list