diff options
author | David Henningsson <david.henningsson@canonical.com> | 2011-09-25 11:07:47 +0200 |
---|---|---|
committer | Colin Guthrie <colin@mageia.org> | 2011-09-25 13:44:34 +0100 |
commit | 0cebb630da7af4a3fff79b44261115e6af08e21c (patch) | |
tree | 6f86d4c04d494d98fb9bddd4f9151b772bc63f2c | |
parent | 165bd13d9e596b98ebc9cd8f9927d606934ff709 (diff) |
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>
-rw-r--r-- | src/pulsecore/thread-mq.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pulsecore/thread-mq.c b/src/pulsecore/thread-mq.c index 51fb765b7..b492793ee 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; |