Merge pull request #50 from empathetic-alligator/master

Fixed memory leak.
This commit is contained in:
Andrey Petrov 2014-12-14 16:24:52 -08:00
commit f611516b16

View File

@ -160,6 +160,7 @@ func (c *Client) handleShell(channel ssh.Channel) {
go func() { go func() {
// Block until done, then remove. // Block until done, then remove.
c.Conn.Wait() c.Conn.Wait()
close(c.Msg)
c.Server.Remove(c) c.Server.Remove(c)
}() }()