fix(agent): prevent possible deadlock when stopping SSH server (#2280)

This commit is contained in:
henrygd
2026-09-02 20:31:38 -04:00
parent 71af06b31c
commit bc21da9cb3
4 changed files with 31 additions and 2 deletions

View File

@@ -265,6 +265,5 @@ func (a *Agent) StopServer() error {
slog.Info("Stopping SSH server")
_ = a.server.Close()
a.server = nil
a.connectionManager.eventChan <- SSHDisconnect
return nil
}