mirror of
https://github.com/shazow/ssh-chat.git
synced 2025-06-10 04:12:07 +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) {
|
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)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user