From 4e9bd419b03f359d71facd858e2bac8e34e578f3 Mon Sep 17 00:00:00 2001 From: Andrey Petrov Date: Fri, 19 Dec 2014 20:04:40 -0800 Subject: [PATCH] Close connection on channel close? --- client.go | 1 + 1 file changed, 1 insertion(+) diff --git a/client.go b/client.go index 189afcf..1d19e76 100644 --- a/client.go +++ b/client.go @@ -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)