Skip to content

Commit

Permalink
fix review comment
Browse files Browse the repository at this point in the history
  • Loading branch information
ganeshrn committed Jul 14, 2020
1 parent 8426518 commit 65638b1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/pylibsshext/channel.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,7 @@ cdef class Channel:
raise LibsshChannelException("Failed to open_session: [%d]" % rc)

def __dealloc__(self):
if self._libssh_channel is not NULL:
self.close()
self.close()

def request_shell(self):
self.request_pty()
Expand Down

0 comments on commit 65638b1

Please sign in to comment.