mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
commit
83f853b6ea
1 changed files with 4 additions and 5 deletions
|
@ -284,12 +284,11 @@ class SaltEvent(object):
|
|||
start = time.time()
|
||||
timeout_at = start + wait
|
||||
while not wait or time.time() <= timeout_at:
|
||||
# convert to milliseconds
|
||||
socks = dict(self.poller.poll(wait * 1000))
|
||||
if socks.get(self.sub) != zmq.POLLIN:
|
||||
continue
|
||||
|
||||
try:
|
||||
# convert to milliseconds
|
||||
socks = dict(self.poller.poll(wait * 1000))
|
||||
if socks.get(self.sub) != zmq.POLLIN:
|
||||
continue
|
||||
# Please do not use non-blocking mode here.
|
||||
# Reliability is more important than pure speed on the event bus.
|
||||
ret = self.get_event_block()
|
||||
|
|
Loading…
Add table
Reference in a new issue