From 63f3b082d530c154cfc939c9d15f75fc2e98328e 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 2277071..f52aea2 100644 --- a/backend/server/src/index.ts +++ b/backend/server/src/index.ts @@ -656,7 +656,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; }