zigster64 / zig-zag-zoe

Multiplayer TicTacToe - in Zig - using HTMX for that zero-javascript experience
http://zig-zag-zoe.com
MIT License
19 stars 1 forks source link

sometimes login fails #12

Closed zigster64 closed 11 months ago

zigster64 commented 11 months ago

sometimes a login doesnt set the player ID ??

or maybe its just the client i was using was caching an old version - dont know

keep an eye out for it happening again

zigster64 commented 11 months ago

that patch seems to work for now

Its a bit dodgy though - hardcoded 200ms delay to - not exactly remove the race condition, but make it extremely unlikey.

If it persists then increase the delay. Not much we can do to control the order in which async requests get fullfilled at the browser end