mirror of
https://github.com/FeralInteractive/gamemode.git
synced 2025-06-06 23:57:22 +02:00
daemon: properly report error in error case
Currently, in method_list_games (`ListGames` on the bus), when sd_bus_message_append fails, we break the loop but then we were not reporting the error (contained in r) back to call.
This commit is contained in:
parent
3881b8b2c8
commit
02ad53584d
@ -257,7 +257,7 @@ static int method_list_games(sd_bus_message *m, void *userdata,
|
||||
free(clients);
|
||||
|
||||
if (r < 0)
|
||||
return 0;
|
||||
return r;
|
||||
|
||||
r = sd_bus_message_close_container(reply);
|
||||
if (r < 0)
|
||||
|
Loading…
x
Reference in New Issue
Block a user