Skip to content

Commit

Permalink
Pull request concerning issue #117 (#118)
Browse files Browse the repository at this point in the history
* bugfix in PrometheusServer.java to close the server after the delay

* bugfix in PrometheusListener.java to clear the collectors after the server is closed.
  • Loading branch information
keydam authored Mar 2, 2023
1 parent 8e9bab3 commit 5e567b3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# 0.6.2

* #117 is a bugfix in PrometheusListener.java to clear the collectors after the server is closed.

# 0.6.1

* #116 is a bugfix in PrometheusServer.java to close the server after the delay.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,13 +103,13 @@ public void sampleStopped(SampleEvent arg0) {
*/
@Override
public void testEnded() {
this.clearCollectors();

try {
this.server.stop();
} catch (Exception e) {
log.error("Couldn't stop http server", e);
}

this.clearCollectors();
}

/*
Expand Down

0 comments on commit 5e567b3

Please sign in to comment.