Skip to content

Commit

Permalink
Do not call session_disconnect on session deallocation - resolves #55
Browse files Browse the repository at this point in the history
  • Loading branch information
eliwe authored and pkittenis committed Jan 15, 2019
1 parent 3991bb3 commit edcd20a
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions ssh2/session.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit edcd20a

Please sign in to comment.