Skip to content

Commit 5463e2e

Browse files
committed
fix: properly cancel scheduler on max retries to avoid potential resource leaks
1 parent 8b66d77 commit 5463e2e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/net/onelitefeather/antiredstoneclockremastered/service/UpdateService.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public void run() {
4545
LOGGER.error("Max retry count reached for update check, stopping further attempts");
4646
LOGGER.error("Please check your internet connection or https://hangar.papermc.io/ status.");
4747
if (this.scheduler != null) {
48-
this.shutdown();
48+
this.scheduler.cancel();
4949
}
5050
return;
5151
}

0 commit comments

Comments
 (0)