Close connection on channel close?

This commit is contained in:
Andrey Petrov 2014-12-19 20:04:40 -08:00
parent cfa97df306
commit 4e9bd419b0

View File

@ -190,6 +190,7 @@ func (c *Client) Emote(message string) {
func (c *Client) handleShell(channel ssh.Channel) {
defer channel.Close()
defer c.Conn.Close()
// FIXME: This shouldn't live here, need to restructure the call chaining.
c.Server.Add(c)