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

@@ -114,6 +114,12 @@ func TestConnectionManager_EventHandling(t *testing.T) {
event: SSHConnect,
expectedState: SSHConnected,
},
{
name: "SSH connect from WebSocket connected (no change)",
initialState: WebSocketConnected,
event: SSHConnect,
expectedState: WebSocketConnected,
},
{
name: "WebSocket disconnect from connected",
initialState: WebSocketConnected,