Skip to content
This repository was archived by the owner on Feb 24, 2023. It is now read-only.

Commit a27114c

Browse files
author
Leonidas Poulopoulos
committed
Prevent race condition when used in Threads
1 parent 43fec9c commit a27114c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ncclient/transport/ssh.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -348,8 +348,9 @@ def run(self):
348348
data = data[n:]
349349
except Exception as e:
350350
logger.debug("Broke out of main loop, error=%r", e)
351-
self.close()
352351
self._dispatch_error(e)
352+
self.close()
353+
353354

354355
@property
355356
def transport(self):

0 commit comments

Comments
 (0)