app: fix registering libvirt event handler
register_event_handlers is called early, when libvirt connection may not be yet established - especially on empty qubes.xml. Do not skip automatic connection logic.
This commit is contained in:
parent
e4d285d479
commit
083108e995
@ -220,7 +220,7 @@ class VMMConnection(object):
|
||||
events into qubes.events. This function should be called only in
|
||||
'qubesd' process and only when mainloop has been already set.
|
||||
'''
|
||||
self._libvirt_conn.domainEventRegisterAny(
|
||||
self.libvirt_conn.domainEventRegisterAny(
|
||||
None, # any domain
|
||||
libvirt.VIR_DOMAIN_EVENT_ID_LIFECYCLE,
|
||||
self._domain_event_callback,
|
||||
|
Loading…
Reference in New Issue
Block a user