mirror of
https://github.com/rommapp/romm.git
synced 2026-11-30 18:42:34 +01:00
Rolling over to the next free container is for the players who did not get one. The holder claiming again should still be refused, and a single container refused it for free by failing SET NX on its only key, so the pool path never had to say it out loud. A second session for the same user is one nothing can reach. Status, heartbeat, release and save-and-exit all resolve through find_session_for_user, which answers with the first match, so the later session holds a pool slot until its TTL lapses and under whole-card sync both halves mount the one card resolve_card picks per (user, emulator), leaving the later release on top of the earlier one's writes. Check for a held session across the candidate pool before trying any key and answer 409 with the rom the user is already in. The pool tests that filled several containers from one token now use a distinct user per container, which is what they were describing anyway.