mirror of
https://github.com/GravitLauncher/Launcher
synced 2024-12-23 00:51:01 +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() {
|
public static synchronized void startAutoRefresh() {
|
||||||
if(!autoRefreshRunning) {
|
if(!autoRefreshRunning) {
|
||||||
executorService = Executors.newSingleThreadScheduledExecutor();
|
if(executorService == null) {
|
||||||
|
executorService = Executors.newSingleThreadScheduledExecutor();
|
||||||
|
}
|
||||||
executorService.scheduleAtFixedRate(() -> {
|
executorService.scheduleAtFixedRate(() -> {
|
||||||
try {
|
try {
|
||||||
restore(false, true);
|
restore(false, true);
|
||||||
|
|
Loading…
Reference in a new issue