The whichPlayersTurn firebase req is getting executed async'ly
Closed this issue · 1 comments
PremBharwani commented
The thisPlayerTurn variable in code is not altered while it is being checked in the main thread , bcz it is being set in the firebase's function which is probably getting it in async from the main thread
PremBharwani commented
RESOLVED . I just moved the main thread code inside the OnValueEventListener of Firebase DD