mirror of
https://github.com/gryf/ferrit.git
synced 2026-02-14 14:15:45 +01:00
Return instead of closing the channel on interactive session.
This commit is contained in:
@@ -147,13 +147,13 @@ class SSHHandler(socketserver.StreamRequestHandler):
|
|||||||
else:
|
else:
|
||||||
channel.close()
|
channel.close()
|
||||||
else:
|
else:
|
||||||
|
# interactive session
|
||||||
channel.send_stderr(GERRIT_SHELL_MSG)
|
channel.send_stderr(GERRIT_SHELL_MSG)
|
||||||
channel.close()
|
return
|
||||||
|
|
||||||
except Exception:
|
except Exception:
|
||||||
traceback.print_exc()
|
traceback.print_exc()
|
||||||
finally:
|
finally:
|
||||||
# channel.close()
|
|
||||||
transport.close()
|
transport.close()
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user