libvirtglib: Handle/Timer IDs start at 1
Libvirt doesn't treat 0 as a valid handle/timer value.
This commit is contained in:
parent
7042c43bbe
commit
b8c1d66801
|
@ -29,10 +29,10 @@ class GlobalState(object):
|
|||
def __init__(self):
|
||||
self.lock = threading.Lock()
|
||||
|
||||
self.nextwatch = 0
|
||||
self.nextwatch = 1
|
||||
self.watches = []
|
||||
|
||||
self.nexttimer = 0
|
||||
self.nexttimer = 1
|
||||
self.timers = []
|
||||
|
||||
class EventWatch(object):
|
||||
|
|
Loading…
Reference in New Issue