From 09b3cf1862d8a0bfc45970c5932c52a4987730a9 Mon Sep 17 00:00:00 2001 From: James Murdza Date: Sun, 29 Sep 2024 17:23:16 -0700 Subject: [PATCH] fix: don't limit the number of terminals on the backend --- backend/server/src/index.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/backend/server/src/index.ts b/backend/server/src/index.ts index 23d59cb..50c7260 100644 --- a/backend/server/src/index.ts +++ b/backend/server/src/index.ts @@ -499,7 +499,8 @@ io.on("connection", async (socket) => { socket.on("createTerminal", async (id: string, callback) => { try { - if (terminals[id] || Object.keys(terminals).length >= 4) { + // Note: The number of terminals per window is limited on the frontend, but not backend + if (terminals[id]) { return; }