forked from External/mage
Fixed some exceptions on slow servers;
This commit is contained in:
parent
0a2f312da7
commit
452b889fe7
2 changed files with 36 additions and 27 deletions
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
package mage.server;
|
||||
|
||||
import java.util.Locale;
|
||||
|
|
@ -240,6 +239,7 @@ public class TableController {
|
|||
public synchronized boolean joinTable(UUID userId, String name, PlayerType playerType, int skill, DeckCardLists deckList, String password) throws MageException {
|
||||
Optional<User> _user = UserManager.instance.getUser(userId);
|
||||
if (!_user.isPresent()) {
|
||||
logger.error("Join Table: can't find user to join " + name + " Id = " + userId);
|
||||
return false;
|
||||
}
|
||||
User user = _user.get();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue