Fixed Bungee Analysis refresh attempt when Bukkit not online (#512)

This commit is contained in:
Rsl1122 2018-02-01 21:02:04 +02:00
parent 1155d10934
commit b6d7be5bd4
2 changed files with 1 additions and 6 deletions

View File

@ -34,7 +34,7 @@ public class ServerPageHandler extends PageHandler {
if (response != null) {
return response;
} else {
return AnalysisPageResponse.refreshNow();
return AnalysisPageResponse.refreshNow(serverUUID);
}
}

View File

@ -3,7 +3,6 @@ package com.djrapitops.plan.system.webserver.response.pages;
import com.djrapitops.plan.api.exceptions.connection.NoServersException;
import com.djrapitops.plan.api.exceptions.connection.WebException;
import com.djrapitops.plan.system.info.InfoSystem;
import com.djrapitops.plan.system.info.server.ServerInfo;
import com.djrapitops.plan.system.processing.Processor;
import com.djrapitops.plan.system.webserver.response.Response;
import com.djrapitops.plan.system.webserver.response.cache.PageId;
@ -20,10 +19,6 @@ import java.util.UUID;
*/
public class AnalysisPageResponse extends Response {
public static AnalysisPageResponse refreshNow() {
return refreshNow(ServerInfo.getServerUUID());
}
public static AnalysisPageResponse refreshNow(UUID serverUUID) {
Processor.queue(() -> {
try {