mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Fixed syndic unhandled future exception if master is stopped.
This commit is contained in:
parent
9b5ee2155e
commit
ea8e1385c1
1 changed files with 3 additions and 0 deletions
|
@ -270,6 +270,9 @@ class IPCClient(object):
|
|||
if hasattr(self, '_connecting_future') and not self._connecting_future.done(): # pylint: disable=E0203
|
||||
future = self._connecting_future # pylint: disable=E0203
|
||||
else:
|
||||
if hasattr(self, '_connecting_future'):
|
||||
# read previous future result to prevent the "unhandled future exception" error
|
||||
self._connecting_future.exc_info() # pylint: disable=E0203
|
||||
future = tornado.concurrent.Future()
|
||||
self._connecting_future = future
|
||||
self._connect(timeout=timeout)
|
||||
|
|
Loading…
Add table
Reference in a new issue