netrunner icon indicating copy to clipboard operation
netrunner copied to clipboard

Server added an extra, unstarteable game.

Open finnbar opened this issue 10 years ago • 7 comments

So, I'm not sure how this started, but I managed to get myself into two games at once on the same browser. It seems like I clicked one game, then the client lagged and allowed me to click again or something (as the game had moved down in the list, so I was hovering over the "Join" button for a different game after a short moment), thus letting me in both games (sending two requests) without blocking one of them as I was already in a game. This then lead to a few side-effects. [But it shouldn't have side-effects, as Clojure's functional! Ha, I don't get to make functional programming jokes much, probably because they're not very funny.]

  • There is now a game that cannot be started as the host cannot leave or start the game, as the host isn't in control of that game. So that game is floating around, being a bit annoying.
  • While in the game I had control of, every so often, the "Join Game" sound effect would play. As a result, I have become very accustomed to that sound effect (and it definitely didn't get annoying by then).

So I feel like there should be some system in place to avoid this, such as a timeout on created games (after a few minutes after creation, kill a game if it has not been started), or just some magic thing that doesn't allow it in the first place (so if there's some way to only deal with one mouse-press at a time, so even if there is lag, the first mouse press is counted, then the second is blocked or something). Either way, I'm not super familiar with how to deal with this, so you've probably got a better idea of how to fix it than I have.

Also, here's a screenshot!

bahdoublejoin

finnbar avatar Jul 14 '16 20:07 finnbar

Have you tried logging out and logging back in? Zombified games with no activity get automatically killed off eventually (maybe an hour? not sure).

JoelCFC25 avatar Jul 14 '16 21:07 JoelCFC25

I've tried that, the zombified game is still there. If there's already a timeout, then that's fine. I just wasn't sure whether it was going to live there until a server restart. (so you can close this if that timeout is sufficient)

finnbar avatar Jul 14 '16 21:07 finnbar

There's a 1-hour timeout on games. Probably a little generous :).

nealterrell avatar Jul 14 '16 21:07 nealterrell

Probably! :)

finnbar avatar Jul 14 '16 21:07 finnbar

How about if a room gets closed after 10 minutes with at least 1 player seated and no game start? Or is that even too long?

JoelCFC25 avatar Aug 30 '16 14:08 JoelCFC25

I think that sounds reasonable? I'd be tempted to go for five, but I'm not sure. Sometimes people leave to go sort a deck they've forgotten to load into Jinteki, or you're waiting for a friend that's being kind of slow. Either way, 10 is definitely a good start. Also, did you mean "up to 1 player seated"? :wink:

finnbar avatar Aug 30 '16 20:08 finnbar

I think changing the value on this line from 3600000 to 600000 would reduce it to 10 minutes.

JoelCFC25 avatar Sep 16 '17 18:09 JoelCFC25