Reset vnc failure count & delay on state changes. This ensures we re-try the connection when switching from shutoff -> running state transitions with inactive guests

This commit is contained in:
Daniel P. Berrange 2007-01-08 16:08:44 -05:00
parent 483f3436aa
commit 8a7fe3c17a

View File

@ -413,6 +413,9 @@ class vmmConsole(gobject.GObject):
else:
self.activate_unavailable_page()
else:
# State changed, so better let it try connecting again
self.vncViewerFailures = 0
self.vncViewerRetryDelay = 125
try:
self.try_login()
except: