Skip to content

Commit

Permalink
chore: close webhook server only after the connecor was killed (#138)
Browse files Browse the repository at this point in the history
  • Loading branch information
sebbi08 authored Feb 21, 2024
1 parent d8a15c9 commit 6dd3acd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/lib/Launcher.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,10 @@ export class Launcher {

public stop(): void {
this._processes.forEach((p) => {
p.connector.on("exit", () => {
p.webhookServer?.close();
});
p.connector.kill();
p.webhookServer?.close();
});
}
}

0 comments on commit 6dd3acd

Please sign in to comment.