Fix: concurrent access in Upper and Lower List, added img cache
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user