mirror of
https://github.com/magefree/mage.git
synced 2026-01-10 21:02:08 -08:00
* UI: fixed wrong server reconnect on multiple apps runs (#5495);
This commit is contained in:
parent
978f35a6ca
commit
f81142459d
5 changed files with 43 additions and 15 deletions
|
|
@ -1,6 +1,5 @@
|
|||
package org.mage.test.load;
|
||||
|
||||
import java.util.UUID;
|
||||
import mage.interfaces.MageClient;
|
||||
import mage.interfaces.callback.ClientCallback;
|
||||
import mage.remote.Session;
|
||||
|
|
@ -8,6 +7,8 @@ import mage.utils.MageVersion;
|
|||
import mage.view.GameView;
|
||||
import org.apache.log4j.Logger;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* For tests only
|
||||
*
|
||||
|
|
@ -38,7 +39,7 @@ public class SimpleMageClient implements MageClient {
|
|||
}
|
||||
|
||||
@Override
|
||||
public void disconnected(boolean errorCall) {
|
||||
public void disconnected(boolean askToReconnect) {
|
||||
// do nothing
|
||||
}
|
||||
|
||||
|
|
@ -62,11 +63,11 @@ public class SimpleMageClient implements MageClient {
|
|||
}
|
||||
|
||||
public void setSession(Session session) {
|
||||
((LoadCallbackClient) callbackClient).setSession(session);
|
||||
callbackClient.setSession(session);
|
||||
}
|
||||
|
||||
public boolean isGameOver() {
|
||||
return ((LoadCallbackClient) callbackClient).isGameOver();
|
||||
return callbackClient.isGameOver();
|
||||
}
|
||||
|
||||
public void setConcede(boolean needToConcede) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue