Skip to content

Commit fc9c7d4

Browse files
committed
add missing ReqClient _closing var
squelches the warning in salt.transport.base.
1 parent f906ca5 commit fc9c7d4

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

salt/transport/tcp.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@ async def getstream(self, **kwargs):
293293
)
294294
self.unpacker = salt.utils.msgpack.Unpacker()
295295
log.debug(
296-
"PubClient conencted to %r %r:%r", self, self.host, self.port
296+
"PubClient connected to %r %r:%r", self, self.host, self.port
297297
)
298298
else:
299299
log.debug("PubClient connecting to %r %r", self, self.path)
@@ -303,7 +303,7 @@ async def getstream(self, **kwargs):
303303
)
304304
await asyncio.wait_for(stream.connect(self.path), 1)
305305
self.unpacker = salt.utils.msgpack.Unpacker()
306-
log.debug("PubClient conencted to %r %r", self, self.path)
306+
log.debug("PubClient connected to %r %r", self, self.path)
307307
except Exception as exc: # pylint: disable=broad-except
308308
if self.path:
309309
_connect_to = self.path
@@ -1896,6 +1896,7 @@ async def _do_send():
18961896
def close(self):
18971897
if self._closing:
18981898
return
1899+
self._closing = True
18991900
if self._stream is not None:
19001901
self._stream.close()
19011902
self._stream = None

0 commit comments

Comments
 (0)