libvirtglib: Handle/Timer IDs start at 1

Libvirt doesn't treat 0 as a valid handle/timer value.
This commit is contained in:
Cole Robinson 2011-07-20 14:08:29 -04:00
parent 7042c43bbe
commit b8c1d66801
1 changed files with 2 additions and 2 deletions

View File

@ -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):