Skip to content

Commit

Permalink
refact: remove unnecessary launcherFuture.isCancelled() check (#1090)
Browse files Browse the repository at this point in the history
launcherFuture.isDone() already checks if cancelled
  • Loading branch information
sebthom authored Aug 29, 2024
1 parent d4be7b8 commit feab5a6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -483,7 +483,7 @@ private void logMessage(Message message) {
*/
public synchronized boolean isActive() {
final var launcherFuture = this.launcherFuture;
return launcherFuture != null && !launcherFuture.isDone() && !launcherFuture.isCancelled();
return launcherFuture != null && !launcherFuture.isDone();
}

private void removeStopTimerTask() {
Expand Down

0 comments on commit feab5a6

Please sign in to comment.