diff --git a/navi/tools/ssh_exec.py b/navi/tools/ssh_exec.py index e2a6dd7..00414ad 100644 --- a/navi/tools/ssh_exec.py +++ b/navi/tools/ssh_exec.py @@ -74,7 +74,7 @@ entry = _pool.get(key) if entry is not None: age = time.monotonic() - entry.created_at - if age > _TTL or entry.conn.is_closing(): + if age > _TTL or entry.conn.is_closed(): # Expired or already closed — drop it try: entry.conn.close()