mirror of
https://github.com/shazow/ssh-chat.git
synced 2025-07-31 15:48:39 +03:00
Close connection on channel close?
This commit is contained in:
parent
cfa97df306
commit
4e9bd419b0
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user