Skip to content

Commit bdf5c1d

Browse files
committed
Add a shutdown method to cleanly terminate the timeChangedTimer.
1 parent e33bc1d commit bdf5c1d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

AdvancedCore/src/main/java/com/bencodez/advancedcore/bungeeapi/globaldata/GlobalDataHandlerProxy.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,10 @@ public void run() {
7272
}
7373
}, 60, 10, TimeUnit.SECONDS);
7474
}
75+
76+
public void shutdown() {
77+
timeChangedTimer.shutdownNow();
78+
}
7579

7680
public void checkForFinishedTimeChanges() {
7781
try {

0 commit comments

Comments
 (0)