fix: remove unneeded pty.wait
This commit is contained in:
parent
fa998d9069
commit
d74205c909
@ -35,7 +35,6 @@ export class Terminal {
|
|||||||
async sendData(data: string) {
|
async sendData(data: string) {
|
||||||
if (this.pty) {
|
if (this.pty) {
|
||||||
await this.sandbox.pty.sendInput(this.pty.pid, new TextEncoder().encode(data));
|
await this.sandbox.pty.sendInput(this.pty.pid, new TextEncoder().encode(data));
|
||||||
await this.pty.wait();
|
|
||||||
} else {
|
} else {
|
||||||
console.log("Cannot send data because pty is not initialized.");
|
console.log("Cannot send data because pty is not initialized.");
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user