forked from External/mage
client + server improvements
This commit is contained in:
parent
f37f2d8b63
commit
94c5a0cdfb
20 changed files with 594 additions and 321 deletions
|
|
@ -492,9 +492,9 @@ public class Session {
|
|||
return false;
|
||||
}
|
||||
|
||||
public boolean removeTable(UUID roomId, UUID tableId) {
|
||||
public boolean removeTable(UUID tableId) {
|
||||
try {
|
||||
server.removeTable(sessionId, roomId, tableId);
|
||||
server.removeTable(sessionId, tableId);
|
||||
return true;
|
||||
} catch (RemoteException ex) {
|
||||
handleRemoteException(ex);
|
||||
|
|
@ -672,6 +672,18 @@ public class Session {
|
|||
return null;
|
||||
}
|
||||
|
||||
public boolean disconnectUser(UUID userSessionId) {
|
||||
try {
|
||||
server.disconnectUser(sessionId, userSessionId);
|
||||
return true;
|
||||
} catch (RemoteException ex) {
|
||||
handleRemoteException(ex);
|
||||
} catch (MageException ex) {
|
||||
handleMageException(ex);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
private void handleRemoteException(RemoteException ex) {
|
||||
logger.fatal("Communication error", ex);
|
||||
if (ex instanceof java.rmi.ConnectException) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue