mirror of
https://codeberg.org/dnkl/yambar.git
synced 2025-04-19 19:25:41 +02:00
module_mpris: fixed a crash on startup
Non existing clients are now handled correctly.
This commit is contained in:
parent
4ed93d9b68
commit
c1ddafd34a
1 changed files with 1 additions and 1 deletions
|
@ -733,7 +733,7 @@ find_existing_clients(struct context *context, sd_bus *connection, uint32_t time
|
|||
sd_bus_message_close_container(list_names_message);
|
||||
sd_bus_message_unref(list_names_message);
|
||||
|
||||
return status > 0;
|
||||
return status > 0 && context->clients.length > 0;
|
||||
}
|
||||
|
||||
static bool
|
||||
|
|
Loading…
Add table
Reference in a new issue