Commit 07584208 authored by nanahira's avatar nanahira

fix

parent 52cbea01
......@@ -42,13 +42,6 @@ function attack(address: string, port: number): Promise<void> {
attackProcess.stdout.on("data", log.info);
attackProcess.stderr.setEncoding("utf-8");
attackProcess.stderr.on("data", log.warn);
attackProcess.on("error", (error) => {
log.info(`Attack of ${address}:${port} errored: ${error.message}`);
if (!check) {
check = true;
done();
}
});
return new Promise(done => {
let check = false;
attackProcess.on("exit", (code, signal) => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment