Skip to content

Commit

Permalink
[processor] shutdown the executor on cue, dont leak (#126)
Browse files Browse the repository at this point in the history
* [processor] shutdown the executor on cue, dont leak

* [processor] shutdown after setting boolean intent
  • Loading branch information
truthbk committed Nov 12, 2020
1 parent 85f1b25 commit 596a1c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/com/timgroup/statsd/StatsDProcessor.java
Original file line number Diff line number Diff line change
Expand Up @@ -147,11 +147,11 @@ public void run() {
}

boolean isShutdown() {
executor.shutdown();
return shutdown;
}

void shutdown() {
shutdown = true;
executor.shutdown();
}
}

0 comments on commit 596a1c1

Please sign in to comment.