mirror of
https://github.com/virt-manager/virt-manager.git
synced 2025-02-25 18:55:27 -06:00
Show correct connection state after open failure.
This commit is contained in:
parent
a2d49aee87
commit
575ebc7077
@ -483,6 +483,8 @@ class vmmConnection(gobject.GObject):
|
|||||||
logging.debug("Notifying open result")
|
logging.debug("Notifying open result")
|
||||||
|
|
||||||
try:
|
try:
|
||||||
|
gobject.idle_add(util.idle_emit, self, "state-changed")
|
||||||
|
|
||||||
if self.state == self.STATE_ACTIVE:
|
if self.state == self.STATE_ACTIVE:
|
||||||
logging.debug("%s capabilities:\n%s" %
|
logging.debug("%s capabilities:\n%s" %
|
||||||
(self.get_uri(), self.vmm.getCapabilities()))
|
(self.get_uri(), self.vmm.getCapabilities()))
|
||||||
@ -494,8 +496,6 @@ class vmmConnection(gobject.GObject):
|
|||||||
self.config.reconcile_vm_entries(self.get_uri(),
|
self.config.reconcile_vm_entries(self.get_uri(),
|
||||||
self.vms.keys())
|
self.vms.keys())
|
||||||
|
|
||||||
gobject.idle_add(util.idle_emit, self, "state-changed")
|
|
||||||
|
|
||||||
if self.state == self.STATE_DISCONNECTED:
|
if self.state == self.STATE_DISCONNECTED:
|
||||||
gobject.idle_add(util.idle_emit, self, "connect-error",
|
gobject.idle_add(util.idle_emit, self, "connect-error",
|
||||||
self.connectError)
|
self.connectError)
|
||||||
|
Loading…
Reference in New Issue
Block a user