ritty
08-14-2009, 09:30 AM
Scenario:
User logs in, goes to default room, the lobby, which displays lists of games.
User very quickly (e.g., within 1 second) clicks on one of the games to join. When joining the game, the user is listed in the response under .getFailedNames. If the user doesn't try to join the game very quickly after login, all is fine.
The weirdest part of this is that the user actually successfully enters the room, despite being listed as a failed name.
// Create user entry
UserConfig user = new UserConfig();
user.setUserName(username);
user.setReceivingRoomAttributeUpdates(false);
user.setReceivingRoomListUpdates(false);
user.setReceivingRoomVariableUpdates(false);
user.setReceivingUserListUpdates(false);
user.setReceivingUserVariableUpdates(false);
user.setReceivingVideoEvents(false);
ArrayList<UserConfig> users = new ArrayList<UserConfig>();
users.add(user);
RoomResponse response = server.getApi().addUsersToRoom(zoneId, roomId, "", users);
// Check for failure
Collection<String> fails = response.getFailedNames();
// The username is shown on failure, e.g., [bobby]
System.out.println(fails.toString());
User logs in, goes to default room, the lobby, which displays lists of games.
User very quickly (e.g., within 1 second) clicks on one of the games to join. When joining the game, the user is listed in the response under .getFailedNames. If the user doesn't try to join the game very quickly after login, all is fine.
The weirdest part of this is that the user actually successfully enters the room, despite being listed as a failed name.
// Create user entry
UserConfig user = new UserConfig();
user.setUserName(username);
user.setReceivingRoomAttributeUpdates(false);
user.setReceivingRoomListUpdates(false);
user.setReceivingRoomVariableUpdates(false);
user.setReceivingUserListUpdates(false);
user.setReceivingUserVariableUpdates(false);
user.setReceivingVideoEvents(false);
ArrayList<UserConfig> users = new ArrayList<UserConfig>();
users.add(user);
RoomResponse response = server.getApi().addUsersToRoom(zoneId, roomId, "", users);
// Check for failure
Collection<String> fails = response.getFailedNames();
// The username is shown on failure, e.g., [bobby]
System.out.println(fails.toString());