Skip to content

Commit

Permalink
fix(prometheus): this.http_server may undefined onStop (#1124)
Browse files Browse the repository at this point in the history
  • Loading branch information
waitingsong authored Jun 30, 2021
1 parent fe593fc commit 300a3ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/prometheus/src/configuration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ export class AutoConfiguration {
async onStop() {
if (isMaster()) {
closeLock();
this.http_server.close();
this.http_server && this.http_server.close();
}
}
}

0 comments on commit 300a3ec

Please sign in to comment.