Commit 8e60f299 authored by Antoine Millet's avatar Antoine Millet
Browse files

Workaround a libvirt bug in EventLoop interface

Libvirt doesn't like null handler id or timer id. Start the count to 1.
parent 2796f3e3
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -195,8 +195,8 @@ class EventLoop(object):
        """
        self.loop = loop

        self.handle_id = count()
        self.timer_id = count()
        self.handle_id = count(1)
        self.timer_id = count(1)
        self.handles = dict()
        self.timers = dict()