From: David Henningsson Date: Sun, 25 Sep 2011 09:07:47 +0000 (+0200) Subject: Fix crash in threaded message queues X-Git-Url: https://code.delx.au/pulseaudio/commitdiff_plain/0cebb630da7af4a3fff79b44261115e6af08e21c Fix crash in threaded message queues Once in a million or so, this typo causes a crash when two threads simultaneously try to call "pa_asynqmsgq_write_poll". BugLink: http://bugs.launchpad.net/bugs/853560 Signed-off-by: David Henningsson --- diff --git a/src/pulsecore/thread-mq.c b/src/pulsecore/thread-mq.c index 51fb765b..b492793e 100644 --- a/src/pulsecore/thread-mq.c +++ b/src/pulsecore/thread-mq.c @@ -42,7 +42,7 @@ static void asyncmsgq_read_cb(pa_mainloop_api*api, pa_io_event* e, int fd, pa_io pa_assert(events == PA_IO_EVENT_INPUT); pa_asyncmsgq_ref(aq = q->outq); - pa_asyncmsgq_write_after_poll(aq); + pa_asyncmsgq_read_after_poll(aq); for (;;) { pa_msgobject *object;