PremBharwani/ticTacToe

Array not getting reseted properly in OnlineGameActivity when i go back to Menu and play online again

Opened this issue · 1 comments

BoxStatusLocal array which is checking if you have won , stays the same as the previous game , so the first game goes good, but when i go back and press play online again it just keeps the BoxStatusLocal array as it was in the last game , it is not getting reset

I suspect the problem is with the firebase event listener is setting the boxStatusLocal back to the previous values, probably the database reset is taking time , and before this reset is taking place the values are set to last game values in the onStart block