Skip to content

Commit

Permalink
Actually compare countdown classes during running checks
Browse files Browse the repository at this point in the history
Signed-off-by: Austin L Mayes <[email protected]>
  • Loading branch information
AustinLMayes committed Feb 1, 2021
1 parent 21187ed commit b7366b4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ public void cancelAll() {
* @return if a countdown of the specified class is running
*/
public boolean isRunning(Class<? extends Countdown> clazz) {
return this.countdowns.values().stream().anyMatch(countdown -> clazz.isInstance(clazz));
return this.countdowns.keySet().stream().anyMatch(clazz::isInstance);
}

/**
Expand Down

0 comments on commit b7366b4

Please sign in to comment.