mirror of
https://github.com/FeralInteractive/gamemode.git
synced 2025-06-07 08:07:20 +02:00
Remove artificial max client limit
This is just additional code that isn't required, and could mask or cause problems.
This commit is contained in:
parent
a837b8630c
commit
75dc083616
@ -82,9 +82,6 @@ struct GameModeContext {
|
|||||||
|
|
||||||
static GameModeContext instance = { 0 };
|
static GameModeContext instance = { 0 };
|
||||||
|
|
||||||
/* Maximum number of concurrent processes we'll sanely support */
|
|
||||||
#define MAX_GAMES 256
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Protect against signals
|
* Protect against signals
|
||||||
*/
|
*/
|
||||||
@ -387,12 +384,6 @@ int game_mode_context_register(GameModeContext *self, pid_t client, pid_t reques
|
|||||||
goto error_cleanup;
|
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 */
|
/* Check the PID first to spare a potentially expensive lookup for the exe */
|
||||||
pthread_rwlock_rdlock(&self->rwlock); // ensure our pointer is sane
|
pthread_rwlock_rdlock(&self->rwlock); // ensure our pointer is sane
|
||||||
const GameModeClient *existing = game_mode_context_has_client(self, client);
|
const GameModeClient *existing = game_mode_context_has_client(self, client);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user