]> git.cworth.org Git - empires-server/commit
Don't let a new prompt get started when another is active
authorCarl Worth <cworth@cworth.org>
Tue, 9 Jun 2020 15:10:11 +0000 (08:10 -0700)
committerCarl Worth <cworth@cworth.org>
Tue, 9 Jun 2020 15:10:11 +0000 (08:10 -0700)
commitc415c76ac632b8e55cf0260c52ebc7c77836614e
treef0e6e39b9d5bd0764527a47643cafdab2ead912b
parentd4bf8b14e7407a96f9b035ad48cb31a2393a36ec
Don't let a new prompt get started when another is active

This avoids any negative side effect from a race condition where two
clients request a game to start within a short time window of each
other. When one prompt is active, the server will ignore any further
incoming requests to start a new prompt, (until the active one is
completed).
empathy.js