update profile in FX thread
This commit is contained in:
@@ -64,6 +64,7 @@ public class EDCE {
|
|||||||
if (cache.size() > CACHE_LIMIT){
|
if (cache.size() > CACHE_LIMIT){
|
||||||
cache.remove(0);
|
cache.remove(0);
|
||||||
}
|
}
|
||||||
|
Platform.runLater(() -> {
|
||||||
checkCmd(packet.getCommander());
|
checkCmd(packet.getCommander());
|
||||||
if (checkSystem(packet.getLastSystem())){
|
if (checkSystem(packet.getLastSystem())){
|
||||||
if (packet.getCommander().isDocked()) {
|
if (packet.getCommander().isDocked()) {
|
||||||
@@ -76,6 +77,7 @@ public class EDCE {
|
|||||||
}
|
}
|
||||||
checkShip(packet.getShip());
|
checkShip(packet.getShip());
|
||||||
forceUpdate = false;
|
forceUpdate = false;
|
||||||
|
});
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
LOG.warn("Error on parse json:");
|
LOG.warn("Error on parse json:");
|
||||||
LOG.warn("{}", json);
|
LOG.warn("{}", json);
|
||||||
|
|||||||
Reference in New Issue
Block a user