|
|
@ -33,10 +33,7 @@ export class DeferedSpawn extends Emittery {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
async waitForNextData(): Promise<string | null> {
|
|
|
|
async waitForNextData(): Promise<string | null> {
|
|
|
|
console.log(
|
|
|
|
console.log("waiting for next data from", this.process.spawnargs.join(" "));
|
|
|
|
"waiting for next data from",,
|
|
|
|
|
|
|
|
this.process.spawnargs.join(" ")
|
|
|
|
|
|
|
|
);
|
|
|
|
|
|
|
|
return new Promise((resolve, reject) => {
|
|
|
|
return new Promise((resolve, reject) => {
|
|
|
|
this.on("data", (data) => {
|
|
|
|
this.on("data", (data) => {
|
|
|
|
console.log("got answer from process", this.process.spawnfile);
|
|
|
|
console.log("got answer from process", this.process.spawnfile);
|
|
|
|