Some fixes (Concurrent List GUI)
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user