mirror of
https://github.com/FeralInteractive/gamemode.git
synced 2025-06-26 17:31:45 +02:00
daemon: emit client count change automatically
Every time a game is (un)-registered and we emit the corresponding signal, also emit the properties change signal for ClientCount.
This commit is contained in:
@ -487,7 +487,6 @@ int game_mode_context_register(GameModeContext *self, pid_t client, pid_t reques
|
||||
pthread_rwlock_unlock(&self->rwlock);
|
||||
|
||||
game_mode_client_registered(client);
|
||||
game_mode_client_count_changed();
|
||||
|
||||
return 0;
|
||||
|
||||
@ -586,7 +585,6 @@ int game_mode_context_unregister(GameModeContext *self, pid_t client, pid_t requ
|
||||
/* Unlock now we're done applying optimisations */
|
||||
pthread_rwlock_unlock(&self->rwlock);
|
||||
|
||||
game_mode_client_count_changed();
|
||||
game_mode_client_unregistered(client);
|
||||
|
||||
return 0;
|
||||
|
Reference in New Issue
Block a user