Fix: concurrent access in Upper and Lower List, added img cache

This commit is contained in:
rubenpirreram
2026-05-15 23:53:25 +02:00
parent 89de79b5c8
commit 8a8a635db7
5 changed files with 156 additions and 173 deletions
@@ -53,15 +53,12 @@ public class ClientCallbackImpl extends UnicastRemoteObject implements IClientCa
*/
@Override
public void onAction(NetworkEvent event) throws RemoteException {
if(event.getIsError()) {
clientController.view.showError(event.toString());
} else {
synchronized (clientController)
{
event.apply(clientController.miniModel);
}
clientController.view.render();
}
synchronized (clientController) {
if(event.getIsError()) {
clientController.view.showError(event.toString());
} else {
clientController.view.applyAndRender(event);
}
}
}
}