pulse-server: fix lookup of module

This commit is contained in:
Wim Taymans 2020-11-26 09:49:16 +01:00
parent 6235c8c0f2
commit 3b20e0f9e7

View file

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