Merge pull request #36024 from DSRCorporation/bugs/31454_local_client_memleak

Don't subscribe to events if not sure it would read them.
This commit is contained in:
Mike Place 2016-09-03 00:41:01 +09:00 committed by GitHub
commit cd60ec5d57

View file

@ -1493,10 +1493,6 @@ class LocalClient(object):
master_uri=master_uri)
try:
# Ensure that the event subscriber is connected.
# If not, we won't get a response, so error out
if not self.event.connect_pub(timeout=timeout):
raise SaltReqTimeoutError()
payload = channel.send(payload_kwargs, timeout=timeout)
except SaltReqTimeoutError:
raise SaltReqTimeoutError(