Explorar o código

Remove artificial max client limit

	This is just additional code that isn't required, and could mask or cause problems.
Marc Di Luzio %!s(int64=5) %!d(string=hai) anos
pai
achega
75dc083616
Modificáronse 1 ficheiros con 0 adicións e 9 borrados
  1. 0 9
      daemon/gamemode.c

+ 0 - 9
daemon/gamemode.c

@@ -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);