fix: remove unneeded pty.wait
This commit is contained in:
parent
6bfff62513
commit
70cfb5dc3f
@ -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