From edcd20a0c8b09c9f89bd547a74b15d80aa02c6ea Mon Sep 17 00:00:00 2001 From: eliwe Date: Tue, 15 Jan 2019 11:54:02 +0200 Subject: [PATCH] Do not call session_disconnect on session deallocation - resolves #55 --- ssh2/session.pyx | 2 -- 1 file changed, 2 deletions(-) diff --git a/ssh2/session.pyx b/ssh2/session.pyx index c9758aa7..2f4444a7 100644 --- a/ssh2/session.pyx +++ b/ssh2/session.pyx @@ -60,8 +60,6 @@ cdef class Session: def __dealloc__(self): if self._session is not NULL: with nogil: - c_ssh2.libssh2_session_disconnect( - self._session, b"end") c_ssh2.libssh2_session_free(self._session) self._session = NULL