fix: don't limit the number of terminals on the backend

This commit is contained in:
James Murdza 2024-09-29 17:23:16 -07:00
parent f4c79bbb07
commit 09b3cf1862

View File

@ -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;
}