Skip to content

Commit

Permalink
fix(ingress): fix stop network without state
Browse files Browse the repository at this point in the history
Signed-off-by: Chris Lahaye <mail@chrislahaye.com>
  • Loading branch information
ChrisLahaye committed Aug 27, 2022
1 parent ab79214 commit bf69b0b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/app/services/ingress/worker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -326,6 +326,8 @@ export async function start() {
}

async function stopNetwork(network: Network) {
if (!states[network.name]) return;

const state = states[network.name];

if (state.worker) await state.worker.close();
Expand Down

0 comments on commit bf69b0b

Please sign in to comment.