Player automatically disconnected immediately after joining a room

0 votes

Hi,

A lot of the times the player is getting automatically disconnected ( and room gets destroyed) immediately after connecting to the room. This specifically happens when 2 players join a room at the same time ( at the same time means < 1 second difference) 


Problem log in generic case:- 

1) Room already exists with no one inside

2) 2 users join at the same time

4) OnDisconnectDone returns 0 ( disconnect API is not invoked anywhere in the code)

5) When the code is run again with 1 user, a new room is created (that means, the previous room got deleted)


Any pointers on how we can track where the issue is and what invoked the disconnect API or what is the reason why the player gets disconnected immediately after connecting? 

 

 

asked Aug 22, 2014 in AppWarp by Vibhu Bhola (10 points)
edited Aug 22, 2014 by Vibhu Bhola

1 Answer

0 votes
Hey Vibhu,
 
Are you running any of our sample or have you wrote your own application? Sharing your code snippet can help us a lot to debug your problem.
 
Whenever a room get's empty, the room is available for 1 hour. If no one joins that room within 1 hour it will get deleted. But creating a new room will not delete the old one.
 
OnDisconnectDone cannot be called unless you are calling disconnect method, please check it again.
 
Make sure the room your users are joing have a miximum limit greater than or equal to 2.
 
Thanks
answered Aug 23, 2014 by Suyash Mohan (900 points)
Download Widgets
Welcome to ShepHertz Product line forum, where you can ask questions and receive answers from the community. You can also reach out to us on support@shephertz.com
...