Commit bd4faf1c authored by Eric's avatar Eric Committed by Eric_Lee

fix bugs

parent 15dc75cd
......@@ -76,7 +76,7 @@ func (sc *ServerSSHConnection) TryConnectFromCache(h, w int, term string) (err e
}
err = sc.invokeShell(h, w, term)
if err != nil {
CloseClient(sc.client)
RecycleClient(sc.client)
return
}
sc.connected = true
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment