mirror of
https://github.com/wavetermdev/waveterm.git
synced 2025-01-21 21:32:13 +01:00
don't send done packet when detached
This commit is contained in:
parent
0d585e5959
commit
9aa684882b
@ -121,7 +121,7 @@ func (m *MServer) runCommand(runPacket *packet.RunPacketType) {
|
||||
go func() {
|
||||
defer m.RemoveFdContext(runPacket.CK)
|
||||
donePk, err := shexec.RunClientSSHCommandAndWait(runPacket, fdContext, shexec.SSHOpts{}, m, m.Debug)
|
||||
if donePk != nil {
|
||||
if donePk != nil && !runPacket.Detached {
|
||||
m.Sender.SendPacket(donePk)
|
||||
}
|
||||
if err != nil {
|
||||
|
Loading…
Reference in New Issue
Block a user