gcpreston / cuberacer_live

🧩 Twisty puzzle racing platform
https://cuberacer.io
0 stars 0 forks source link

Fix double submit bug #139

Closed gcpreston closed 1 year ago

gcpreston commented 1 year ago

A user could submit a time for a round from two windows and cause a server-side error (https://github.com/gcpreston/cuberacer_live/issues/108). This was possible because room relied on the current_solve assign being set in the event handler, but only the window that submitted the first time gets the event handler called.