mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Merge pull request #26443 from cachedout/fix_event_sub
Fix connect issue in event init
This commit is contained in:
commit
42b8c1b3f4
1 changed files with 2 additions and 1 deletions
|
@ -175,7 +175,8 @@ class SaltEvent(object):
|
|||
self.pending_events = []
|
||||
# since ZMQ connect() has no guarantees about the socket actually being
|
||||
# connected this is a hack to attempt to do so.
|
||||
self.connect_pub()
|
||||
if not self.cpub:
|
||||
self.connect_pub()
|
||||
self.fire_event({}, tagify('event/new_client'), 0)
|
||||
self.get_event(wait=1)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue