From 721f80d0f268e76ae4942de245804a5743886187 Mon Sep 17 00:00:00 2001 From: lash Date: Wed, 8 Jan 2025 07:34:15 +0000 Subject: [PATCH] Repalce missing context --- internal/ssh/ssh.go | 1 + 1 file changed, 1 insertion(+) diff --git a/internal/ssh/ssh.go b/internal/ssh/ssh.go index 4b744a8..8209187 100644 --- a/internal/ssh/ssh.go +++ b/internal/ssh/ssh.go @@ -204,6 +204,7 @@ func(s *SshRunner) GetEngine(sessionId string) (engine.Engine, func(), error) { // adapted example from crypto/ssh package, NewServerConn doc func(s *SshRunner) Run(ctx context.Context, keyStore *SshKeyStore) { + s.Ctx = ctx running := true // TODO: waitgroup should probably not be global