summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--paramiko/transport.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/paramiko/transport.py b/paramiko/transport.py
index 7e437cc9..7ff40933 100644
--- a/paramiko/transport.py
+++ b/paramiko/transport.py
@@ -81,6 +81,7 @@ def _join_lingering_threads():
for thr in _active_threads:
thr.stop_thread()
+
import atexit
atexit.register(_join_lingering_threads)