Skip to content

Commit

Permalink
forget to close channel
Browse files Browse the repository at this point in the history
  • Loading branch information
XavierM committed Nov 22, 2021
1 parent 392af2f commit 9865819
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ export class SecurityNavControlService {
}
this.navControlRegistered = false;
this.stop$.next();
this.channel?.close();
}

private registerSecurityNavControl(
Expand Down Expand Up @@ -176,6 +177,7 @@ export class SecurityNavControlService {
setTimeout(async () => {
if (!elector.isLeader) {
// Let's kill the non leader since we do not need to do telemetry if you are not a leader
// but we are keeping the leader alive to tell the other one that they won't be leader
await elector.die();
}
}, 5000);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export function defineTelemetryOnAuthTypeRoutes({ router, usageCounter }: RouteD

if (!authType || (authType && authType === '')) {
return response.badRequest({
body: { message: `Authentication type attributes can not be empty` },
body: { message: `Authentication type attribute can not be empty` },
});
}

Expand Down

0 comments on commit 9865819

Please sign in to comment.