mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-06 13:30:01 -05:00
client: register the global early, in pw_client_new()
otherwise, if the access module blocks the client, the on_start callback in the protocol is not called and there is no global, which means the session manager cannot do anything to grant permissions on this client and the client is blocked forever
This commit is contained in:
parent
5abab5d4da
commit
5f65f1cbbe
2 changed files with 3 additions and 3 deletions
|
|
@ -308,9 +308,6 @@ static void on_start(void *data, uint32_t version)
|
|||
if (version == 0)
|
||||
client->compat_v2 = &this->compat_v2;
|
||||
|
||||
if (pw_client_register(client, NULL) < 0)
|
||||
return;
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue