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?