1
0
mirror of https://github.com/gryf/ferrit.git synced 2026-02-07 08:45:53 +01:00

Return instead of closing the channel on interactive session.

This commit is contained in:
2019-10-25 14:09:44 +02:00
parent 84413a1658
commit 867a2c4716

View File

@@ -147,13 +147,13 @@ class SSHHandler(socketserver.StreamRequestHandler):
else:
channel.close()
else:
# interactive session
channel.send_stderr(GERRIT_SHELL_MSG)
channel.close()
return
except Exception:
traceback.print_exc()
finally:
# channel.close()
transport.close()