chore: add missing await

This commit is contained in:
James Murdza 2024-09-05 15:08:46 -07:00
parent 70cfb5dc3f
commit c5b197f41c

View File

@ -568,7 +568,7 @@ io.on("connection", async (socket) => {
return; return;
} }
terminals[id].sendData(data); await terminals[id].sendData(data);
} catch (e: any) { } catch (e: any) {
console.error("Error writing to terminal:", e); console.error("Error writing to terminal:", e);
io.emit("error", `Error: writing to terminal. ${e.message ?? e}`); io.emit("error", `Error: writing to terminal. ${e.message ?? e}`);