mirror of
https://github.com/GravitLauncher/Launcher
synced 2024-12-22 16:41:46 +03:00
[FIX] Enable autoRefresh in default
This commit is contained in:
parent
224649aa13
commit
fce8453bd1
1 changed files with 3 additions and 1 deletions
|
@ -36,7 +36,9 @@ public abstract class Request<R extends WebSocketEvent> implements WebSocketRequ
|
|||
|
||||
public static synchronized void startAutoRefresh() {
|
||||
if(!autoRefreshRunning) {
|
||||
if(executorService == null) {
|
||||
executorService = Executors.newSingleThreadScheduledExecutor();
|
||||
}
|
||||
executorService.scheduleAtFixedRate(() -> {
|
||||
try {
|
||||
restore(false, true);
|
||||
|
|
Loading…
Reference in a new issue