From 083108e99578e163f13a8d105f00061fb9a8cd60 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?= Date: Wed, 14 Jun 2017 23:20:53 +0200 Subject: [PATCH] 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. --- qubes/app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qubes/app.py b/qubes/app.py index c039e1fc..493bc412 100644 --- a/qubes/app.py +++ b/qubes/app.py @@ -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,