Hello,
I am writing an application for Windows Runtime (Windows Phone 8.1 and Windows 8.1) using the AppWarp SDK and I am having trouble trying to allow players to leave a game and join another one very quickly. Basically I have a leave button which disconnects from AppWarp and then goes back to the main page where they can immediately press join again to connect and find a random game but after connecting, joinining a game, and disconnecting a few times in rapid succession I always get an AUTH_ERROR when I try to connect again and I have to wait for the Recovery Time set in my WarpClient before I can connect again. I am making sure that I receive the onDisconnectDone callback with a success code before I connect again as I have been printing every time I connect and disconnect and similar to this (though the exact number of times I can connect without error varies it is usually around 3-4 disconnects before it errors):
- Connecting...
- Connected Successfully
- Disconnected Successfully
- Connecting...
- Connected Successfully
- Disconnected Successfully
- Connecting...
- AUTH_ERROR
Since I have to wait for the recovery time before I can connect again it seems that for some reason my session is not ending properly when I disconnect and this is causing it to fail when I connect again. Every time I do connect successfully I also call GetRoomWithProperties then GetLiveRoomInfo then SubscribeRoom then JoinRoom and on the same room ID every time in case that helps pinpoint where the problem might be happening.
Also, when I disconnect, the other players in the room are getting an onUserLeftRoom notification as they should except the last time disconnect before the AUTH_ERROR occurs they get onUserPaused instead for some reason even though I am calling disconnect.
Lastly, the reason code I receive in the onConnectDone callback for the AUTH_ERROR is always Waiting for Paused User.