REGISTER_WAITING_ROOM_LISTENER_RESTRICTED: when not in room
Hi,
I get the following problem:
12-05 02:14:57.222 18575-28110/? E/RSCStateMachine: REGISTER_WAITING_ROOM_LISTENER_RESTRICTED: when not in room 12-05 02:14:57.223 3371-3371/? E/WaitingRoom: Room ChoKCQiom4X3-woQAhABGAIg____________ARCZ3pWo6uSH0Ws invalid. Finishing activity.
When I try to open a quick match or invite players. As soon the default waitingRoom UI opens, it closes itself instantly.
the reason this happens is that under onPause(), I call leaveRoom(). To make it simple it looks like this:
@Override protected void onPause(){ if (mRoomId != null) { Games.RealTimeMultiplayer.leave(mGoogleApiClient, roomHandler, mRoomId); mRoomId = null; } super.onPause(); }
I tried to stick to the Quality Checklist, under 5.1, Best practice. When game goes in the background. This seems to cause it even if the game does not go into the background.
Too be noted I use LibGDX as framework, haven't tested if this happens with for example buttonClicker sample. EDIT: Confirmed this happens with the ButtonClicker Sample! Without use of another framework