PremBharwani/ticTacToe

The whichPlayersTurn firebase req is getting executed async'ly

Closed this issue · 1 comments

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

RESOLVED . I just moved the main thread code inside the OnValueEventListener of Firebase DD