1
0
mirror of https://github.com/shazow/ssh-chat.git synced 2025-07-06 19:58:59 +03:00

Close connection on channel close?

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

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