mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2024-12-29 04:27:53 +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;
|
protected abstract Server selectServerForRequest(InfoRequest infoRequest) throws NoServersException;
|
||||||
|
|
||||||
public void sendInfoRequest(InfoRequest infoRequest) throws WebException {
|
public void sendInfoRequest(InfoRequest infoRequest) throws WebException {
|
||||||
try {
|
Server server = selectServerForRequest(infoRequest);
|
||||||
Server server = selectServerForRequest(infoRequest);
|
new ConnectionOut(server, ServerInfo.getServerUUID(), infoRequest).sendRequest();
|
||||||
|
|
||||||
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);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public ConnectionLog getConnectionLog() {
|
public ConnectionLog getConnectionLog() {
|
||||||
|
Loading…
Reference in New Issue
Block a user