console: Remove console_active check

This is largely left over from the old days when a xen VM could
start up but still take a bit of time for the allocated VNC port
to be reflected in the XML.

This may still be an issue with old old xen, but I suspect it's
not relevant for anything modern, and it causes some issues with
listen=none behavior that spice supports. Just drop it and see if
anyone complains
This commit is contained in:
Cole Robinson 2016-05-02 17:19:15 -04:00
parent c4f62ff028
commit 0a1d22f395
2 changed files with 0 additions and 11 deletions

View File

@ -652,11 +652,6 @@ class vmmConsolePages(vmmGObjectUI):
"guest's listen address." % ginfo.transport))
return
if not ginfo.console_active():
self._activate_unavailable_page(
_("Graphical console is not yet active for guest"))
return
self._activate_unavailable_page(
_("Connecting to graphical console for guest"))

View File

@ -98,12 +98,6 @@ class ConnectionInfo(object):
(self.gtype, self.transport, self._connhost, self.connuser,
self._connport, self.gaddr, self.gport, self.gtlsport,
self.gsocket))
def console_active(self):
if self.gsocket:
return True
if (self.gport in [None, -1] and self.gtlsport in [None, -1]):
return False
return True
class _TunnelScheduler(object):