chore: add missing await

This commit is contained in:
James Murdza 2024-09-05 15:08:46 -07:00
parent d74205c909
commit 0e4649b2c9

View File

@ -563,7 +563,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}`);