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:
Christian Kellner
2019-07-02 17:42:37 +02:00
parent d2bab2962d
commit f9827edfb6
3 changed files with 6 additions and 12 deletions

View File

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