mtgred / netrunner

http://www.jinteki.net
Other
888 stars 388 forks source link

Rejoin error: rejoining with multiple instances of same user #4208

Open AndersRask opened 5 years ago

AndersRask commented 5 years ago

When rejoining a game, the user rejoins with multiple instances of same user: It will write " rejoined the game" several times at the same time in console, and everything you do after that is repeated X times (x being the amount of instances). Only solution is to close browser and open again, and rejoin. This is an old bug, but I think I know why this happens: if you get impatient and clicketiclicketiclick a load of times on rejoin, that will mess up your rejoin, and join multiple sessions.

Proposed solution: a singleton check before joining, checking in a global var or static singleton instance if a user has already joined before joining another session

NBKelly commented 1 month ago

Can confirm that this one is still possible to reproduce