diff -Nru virt-manager-0.9.0/debian/changelog virt-manager-0.9.0/debian/changelog --- virt-manager-0.9.0/debian/changelog 2011-08-19 10:53:32.000000000 -0500 +++ virt-manager-0.9.0/debian/changelog 2011-12-14 12:30:19.000000000 -0600 @@ -1,3 +1,10 @@ +virt-manager (0.9.0-1ubuntu4) precise; urgency=low + + * Force ssh tunnels to close when closing a Viewer window, so that + reconnections will work. (LP: #903307) + + -- Serge Hallyn Wed, 14 Dec 2011 12:29:44 -0600 + virt-manager (0.9.0-1ubuntu3) oneiric; urgency=low * debian/patches/fix_resize_to_vm.patch: fix "Resize to VM" menu option diff -Nru virt-manager-0.9.0/debian/patches/fix-remote-vnc-reconnect.patch virt-manager-0.9.0/debian/patches/fix-remote-vnc-reconnect.patch --- virt-manager-0.9.0/debian/patches/fix-remote-vnc-reconnect.patch 1969-12-31 18:00:00.000000000 -0600 +++ virt-manager-0.9.0/debian/patches/fix-remote-vnc-reconnect.patch 2011-12-14 12:32:10.000000000 -0600 @@ -0,0 +1,19 @@ +Description: on closing a viewer, close its tunnels, so that reconnect + can succeed. +Author: Serge Hallyn +bug-Ubuntu: https://bugs.launchpad.net/ubuntu/+source/virt-manager/+bug/903307 +Forwarded: yes +Index: virt-manager-0.9.0/src/virtManager/console.py +=================================================================== +--- virt-manager-0.9.0.orig/src/virtManager/console.py 2011-12-14 12:29:27.227233612 -0600 ++++ virt-manager-0.9.0/src/virtManager/console.py 2011-12-14 12:29:41.543234033 -0600 +@@ -847,6 +847,9 @@ + v.cleanup() + self.viewer_connected = False + self.leave_fullscreen() ++ if self.tunnels is not None: ++ self.tunnels.close_all() ++ self.tunnels = None + + def update_widget_states(self, vm, status_ignore): + runable = vm.is_runable() diff -Nru virt-manager-0.9.0/debian/patches/series virt-manager-0.9.0/debian/patches/series --- virt-manager-0.9.0/debian/patches/series 2011-08-19 10:51:22.000000000 -0500 +++ virt-manager-0.9.0/debian/patches/series 2011-12-14 12:29:19.000000000 -0600 @@ -5,3 +5,4 @@ fix_grep_portability.patch fix_net_stats.patch fix_resize_to_vm.patch +fix-remote-vnc-reconnect.patch