mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2024-12-27 19:47:49 +01:00
Removed endless loop from ConnectionSystem.sendInfoRequest
This commit is contained in:
parent
334451372b
commit
137b0f3100
@ -64,15 +64,8 @@ public abstract class ConnectionSystem implements SubSystem {
|
||||
protected abstract Server selectServerForRequest(InfoRequest infoRequest) throws NoServersException;
|
||||
|
||||
public void sendInfoRequest(InfoRequest infoRequest) throws WebException {
|
||||
try {
|
||||
Server server = selectServerForRequest(infoRequest);
|
||||
|
||||
new ConnectionOut(server, ServerInfo.getServerUUID(), infoRequest).sendRequest();
|
||||
} catch (NoServersException e) {
|
||||
// At this point ConnectionSystem will return false on isServerAvailable
|
||||
// -> InfoSystem will try to run request locally.
|
||||
InfoSystem.getInstance().sendRequest(infoRequest);
|
||||
}
|
||||
Server server = selectServerForRequest(infoRequest);
|
||||
new ConnectionOut(server, ServerInfo.getServerUUID(), infoRequest).sendRequest();
|
||||
}
|
||||
|
||||
public ConnectionLog getConnectionLog() {
|
||||
|
Loading…
Reference in New Issue
Block a user