From 58fb332a59f64bd786176b0cd22c60898a9d72d9 Mon Sep 17 00:00:00 2001 From: Louis Lam Date: Sat, 25 Nov 2023 01:18:10 +0800 Subject: [PATCH] Join the terminal only if it is managed by Dockge --- backend/socket-handlers/docker-socket-handler.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/backend/socket-handlers/docker-socket-handler.ts b/backend/socket-handlers/docker-socket-handler.ts index 3683114..047d8f7 100644 --- a/backend/socket-handlers/docker-socket-handler.ts +++ b/backend/socket-handlers/docker-socket-handler.ts @@ -75,7 +75,9 @@ export class DockerSocketHandler extends SocketHandler { const stack = Stack.getStack(server, stackName); - stack.joinCombinedTerminal(socket); + if (stack.isManagedByDockge) { + stack.joinCombinedTerminal(socket); + } callback({ ok: true,