change with sequence in event gathering

This commit is contained in:
Thomas S Hatch 2012-06-06 02:26:49 -06:00
parent fc3b1cbaac
commit e9ec1ae9b5

View File

@ -71,7 +71,7 @@ class SaltEvent(object):
if self.sub in socks and socks[self.sub] == zmq.POLLIN: if self.sub in socks and socks[self.sub] == zmq.POLLIN:
raw = self.sub.recv() raw = self.sub.recv()
return self.serial.loads(raw[20:]) return self.serial.loads(raw[20:])
if (time.time() - start) > wait: else:
return None return None
def fire_event(self, data, tag=''): def fire_event(self, data, tag=''):