lobby: replace lock with channel based semaphore
previously a race condition when starting a game allowed the lobby loop to run into a draw call trying to acquire the lobby lock, while a different routine was holding the lock and waiting for this loop to terminate. only pass the termination check if the lobby lock for the draw call can be acquired.
Please register or sign in to comment