mirror of
https://github.com/wavetermdev/backup.git
synced 2026-08-05 13:57:07 -07:00
fix: this prevents possible loops while connecting (#521)
A recent change made it possible to get stuck in a loop when connecting to a remote. This reverts the part of it that caused this while retaining the other behavior. This makes it possible to add to blank known_host files again. It also adds a printout to display when a connection is complete.
This commit is contained in:
@@ -1733,6 +1733,7 @@ func (msh *MShellProc) Launch(interactive bool) {
|
||||
msh.ServerProc = cproc
|
||||
msh.Status = StatusConnected
|
||||
})
|
||||
msh.WriteToPtyBuffer("connected to %s\n", remoteCopy.RemoteCanonicalName)
|
||||
go func() {
|
||||
exitErr := cproc.Cmd.Wait()
|
||||
exitCode := shexec.GetExitCode(exitErr)
|
||||
|
||||
Reference in New Issue
Block a user