chore: add missing await
This commit is contained in:
parent
d74205c909
commit
0e4649b2c9
@ -563,7 +563,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}`);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user