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 <david.henningsson@canonical.com>
This commit is contained in:
David Henningsson 2011-09-25 11:07:47 +02:00 committed by Colin Guthrie
parent 165bd13d9e
commit 0cebb630da

View file

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