pulse-server: sync manager before module unload completion

Operations sync manager, so use that.

On Pulseaudio, module unload is async procedure. However, this race
condition may be hard to hit in practice, whereas on pipewire-pulse it's
not hard. E.g. Zoom appears to assume that modules are unloaded
synchronously.
This commit is contained in:
Pauli Virtanen 2022-02-04 20:10:26 +02:00 committed by Wim Taymans
parent e737e14e8b
commit 77e50d2dfe

View file

@ -4914,7 +4914,7 @@ static int do_unload_module(struct client *client, uint32_t command, uint32_t ta
module_unload(module); module_unload(module);
return reply_simple_ack(client, tag); return operation_new(client, tag);
} }
static int do_send_object_message(struct client *client, uint32_t command, uint32_t tag, struct message *m) static int do_send_object_message(struct client *client, uint32_t command, uint32_t tag, struct message *m)