fix: remove unneeded pty.wait

This commit is contained in:
James Murdza 2024-09-05 15:06:21 -07:00
parent 6bfff62513
commit 70cfb5dc3f

View File

@ -35,7 +35,6 @@ export class Terminal {
async sendData(data: string) {
if (this.pty) {
await this.sandbox.pty.sendInput(this.pty.pid, new TextEncoder().encode(data));
await this.pty.wait();
} else {
console.log("Cannot send data because pty is not initialized.");
}