arxanas / drafts.ninja

Magic: the Gathering online draft simulator; see new repository
https://github.com/dr4fters/dr4ft
MIT License
7 stars 10 forks source link

Drafted 2x # of Cards #8

Open geoff10e opened 8 years ago

geoff10e commented 8 years ago

Drafting with a friend last night over mobile(Chome SGS4 Android 4.3). Somehow I ended up with 80 cards where he ended up with the normal amount. Not sure how that happened. Hope this helps.

https://www.dropbox.com/s/7ihsxbzd8rf7tvu/2016-06-05%2008.43.34.png?dl=0 http://drafts.ninja/#g/gexwu14lwyiudi https://www.dropbox.com/s/p20e8k98q1jxa1o/gexwu14lwyiudi.json?dl=0

arxanas commented 8 years ago

No idea what might have caused this... My best guess is some kind of race condition, but I'm pretty mystified. The root cause might become more apparent once we start logging all of the draft picks to a database.

geoff10e commented 8 years ago

Was able to recreate this and found it to be a caching problem. Ctrl+f5, a cacheless refresh removed the extra cards.

arxanas commented 8 years ago

Some users have been reporting double posting in the chat. Perhaps the problem is that sometimes the client receives each event twice from the server.