|
@@ -82,9 +82,6 @@ struct GameModeContext {
|
|
|
|
|
|
static GameModeContext instance = { 0 };
|
|
|
|
|
|
-/* Maximum number of concurrent processes we'll sanely support */
|
|
|
-#define MAX_GAMES 256
|
|
|
-
|
|
|
/**
|
|
|
* Protect against signals
|
|
|
*/
|
|
@@ -387,12 +384,6 @@ int game_mode_context_register(GameModeContext *self, pid_t client, pid_t reques
|
|
|
goto error_cleanup;
|
|
|
}
|
|
|
|
|
|
- /* Cap the total number of active clients */
|
|
|
- if (game_mode_context_num_clients(self) + 1 > MAX_GAMES) {
|
|
|
- LOG_ERROR("Max games (%d) reached, not registering %d\n", MAX_GAMES, client);
|
|
|
- goto error_cleanup;
|
|
|
- }
|
|
|
-
|
|
|
/* Check the PID first to spare a potentially expensive lookup for the exe */
|
|
|
pthread_rwlock_rdlock(&self->rwlock); // ensure our pointer is sane
|
|
|
const GameModeClient *existing = game_mode_context_has_client(self, client);
|