Some fixes (Concurrent List GUI)

This commit is contained in:
rubenpirreram
2026-05-15 19:16:43 +02:00
parent 987420c4a4
commit ff94a9fca8
7 changed files with 126 additions and 117 deletions
@@ -53,14 +53,15 @@ public class ClientCallbackImpl extends UnicastRemoteObject implements IClientCa
*/
@Override
public void onAction(NetworkEvent event) throws RemoteException {
synchronized (clientController)
{
if(event.getIsError()) {
clientController.view.showError(event.toString());
} else {
if(event.getIsError()) {
clientController.view.showError(event.toString());
} else {
synchronized (clientController)
{
event.apply(clientController.miniModel);
clientController.view.render();
}
clientController.view.render();
}
}
}
@@ -165,6 +165,7 @@ public class TCPClient implements IClient {
event.apply(controller.miniModel);
}
controller.view.render();
}
} else if (read instanceof MiniModel model) {