mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-31 22:25:38 -04:00
pulse-server: fix lookup of module
This commit is contained in:
parent
6235c8c0f2
commit
3b20e0f9e7
1 changed files with 1 additions and 2 deletions
|
|
@ -4444,8 +4444,7 @@ static int do_unload_module(struct client *client, uint32_t command, uint32_t ta
|
|||
if (module->idx == module_idx)
|
||||
break;
|
||||
}
|
||||
|
||||
if (module == NULL)
|
||||
if (spa_list_is_end(module, &client->modules, link))
|
||||
return -ENOENT;
|
||||
|
||||
unload_module(module);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue