From c5b197f41c0c0973679d81226608541a5cf22906 Mon Sep 17 00:00:00 2001 From: James Murdza Date: Thu, 5 Sep 2024 15:08:46 -0700 Subject: [PATCH] chore: add missing await --- backend/server/src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/server/src/index.ts b/backend/server/src/index.ts index c635fbd..09ad464 100644 --- a/backend/server/src/index.ts +++ b/backend/server/src/index.ts @@ -568,7 +568,7 @@ io.on("connection", async (socket) => { return; } - terminals[id].sendData(data); + await terminals[id].sendData(data); } catch (e: any) { console.error("Error writing to terminal:", e); io.emit("error", `Error: writing to terminal. ${e.message ?? e}`);