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