forked from External/mage
Fixed some bugs in table handling. Fixed that matches were not set to finished yet, if players left match during sideboarding phase.
This commit is contained in:
parent
df9c200753
commit
40c25fae34
25 changed files with 274 additions and 140 deletions
|
|
@ -87,9 +87,10 @@ public class SessionImpl implements Session {
|
|||
|
||||
private static final Logger logger = Logger.getLogger(SessionImpl.class);
|
||||
|
||||
private final MageClient client;
|
||||
|
||||
private String sessionId;
|
||||
private MageServer server;
|
||||
private MageClient client;
|
||||
private Client callbackClient;
|
||||
private CallbackHandler callbackHandler;
|
||||
private ServerState serverState;
|
||||
|
|
@ -828,6 +829,7 @@ public class SessionImpl implements Session {
|
|||
try {
|
||||
if (isConnected()) {
|
||||
server.removeTable(sessionId, roomId, tableId);
|
||||
|
||||
return true;
|
||||
}
|
||||
} catch (MageException ex) {
|
||||
|
|
@ -1275,8 +1277,8 @@ public class SessionImpl implements Session {
|
|||
}
|
||||
class MageAuthenticator extends Authenticator {
|
||||
|
||||
private String username;
|
||||
private String password;
|
||||
private final String username;
|
||||
private final String password;
|
||||
|
||||
public MageAuthenticator(String username, String password) {
|
||||
this.username = username;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue