mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Need to check for both _closing
and _closed
Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
This commit is contained in:
parent
c78b214d0e
commit
38e72b2716
1 changed files with 1 additions and 1 deletions
|
@ -773,7 +773,7 @@ class MessageClient:
|
|||
|
||||
# TODO: timeout inflight sessions
|
||||
def close(self):
|
||||
if self._closing:
|
||||
if self._closing or self._closed:
|
||||
return
|
||||
self._closing = True
|
||||
self.io_loop.add_timeout(1, self.check_close)
|
||||
|
|
Loading…
Add table
Reference in a new issue