mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 01:18:58 +00:00
the event module works!
This commit is contained in:
parent
641b67938c
commit
b0f238eaba
@ -68,7 +68,7 @@ class SaltEvent(object):
|
||||
start = time.time()
|
||||
while True:
|
||||
socks = dict(self.poller.poll())
|
||||
if self.pub in socks and socks[self.pub] == zmq.POLLIN:
|
||||
if self.sub in socks and socks[self.sub] == zmq.POLLIN:
|
||||
return self.sub.recv()
|
||||
if (time.time() - start) > wait:
|
||||
return None
|
||||
|
Loading…
Reference in New Issue
Block a user