USER_DISCONNECT return null user
Posted: 18 Apr 2013, 12:32
Hi,
I have a ServerEventHandler that catch the USER_DISCONNECT event like the following code:
The problem is I get the user variable null sometime.
Thanks,
I have a ServerEventHandler that catch the USER_DISCONNECT event like the following code:
Code: Select all
public void handleServerEvent(ISFSEvent event) throws SFSException {
User user = (User) event.getParameter(SFSEventParam.USER);
List<Room> joinedRooms = (List<Room>) event.getParameter(SFSEventParam.JOINED_ROOMS);
}
The problem is I get the user variable null sometime.
Thanks,