mirror of
https://github.com/virt-manager/virt-manager.git
synced 2025-02-25 18:55:27 -06:00
Only close connection on error from 'remote' error domain.
This commit is contained in:
parent
575120aa88
commit
13d61f97c9
@ -428,7 +428,8 @@ class vmmEngine(gobject.GObject):
|
||||
except KeyboardInterrupt:
|
||||
raise
|
||||
except libvirt.libvirtError, e:
|
||||
if e.get_error_code() == libvirt.VIR_ERR_SYSTEM_ERROR:
|
||||
if (e.get_error_domain() == libvirt.VIR_FROM_REMOTE and
|
||||
e.get_error_code() == libvirt.VIR_ERR_SYSTEM_ERROR):
|
||||
logging.exception("Could not refresh connection %s." % uri)
|
||||
logging.debug("Closing connection since libvirtd "
|
||||
"appears to have stopped.")
|
||||
|
Loading…
Reference in New Issue
Block a user