From c320e035e7749a7037d091d627a0da1670e535f8 Mon Sep 17 00:00:00 2001 From: "Hugh O. Brock" Date: Wed, 13 Jun 2007 15:30:22 -0400 Subject: [PATCH] I thought that the following is the problem. ---------------------------------------------------------------------- In finish() of "create.py", the port number of VNC become -1. When "Status monitoring" is short, the port number of VNC is updated in a short time, but, when "Status monitoring" is long, the port number of VNC is not updated for a long time. Because the XML data cached in "domain.py" is updated only in tick(). ---------------------------------------------------------------------- And, I forgot retrying in "console.py". Therefore, I adopted updating the port number of VNC in "cerate.py". I remake the patch. This patch only clears XML in get_graphics_console(), and the connection to the console is not retried in "create.py". So, by applying this patch, the XML data is cleared by retrying in "console.py" even when "Status monitoring" is long, and the port number of VNC is updated. (Because retrying in "console.py" calls get_graphics_console()) Thanks, Masayuki Sunou. ---------------------------------------------------------------------- --- src/virtManager/domain.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/virtManager/domain.py b/src/virtManager/domain.py index 051e0a926..59d2093c2 100644 --- a/src/virtManager/domain.py +++ b/src/virtManager/domain.py @@ -430,6 +430,7 @@ class vmmDomain(gobject.GObject): return os.access(tty, os.R_OK | os.W_OK) def get_graphics_console(self): + self.xml = None type = self.get_xml_string("/domain/devices/graphics/@type") port = None if type == "vnc":