console: Fix hang when reconnecting to remote VNC console

VNC disconnect signals aren't being delivered, meaning we never cleanup
up SSH tunnels for remote VNC connections. This causes a reconnect
attempt to hang, trying to reuse the existing tunnels (which doesn't
work).

The problem is that we are cleaning up the VNC widget too early,
unregistering callbacks before they get a chance to be invoked.

Not cleaning up only causes a small memory leak for every console we
open, so only a minor problem compared to the original issue. A more
involved fix is required to clean up safely.
This commit is contained in:
Cole Robinson 2011-12-22 12:55:40 -05:00
parent 9d2119ab3e
commit becf776d6a

View File

@ -850,7 +850,6 @@ class vmmConsolePages(vmmGObjectUI):
viewport.remove(w)
v.close()
v.cleanup()
self.viewer_connected = False
self.leave_fullscreen()