bluetooth: move installation of mq's earlier to avoid context asserts to be triggered

This commit is contained in:
Lennart Poettering 2009-08-16 00:43:22 +02:00
parent de4968cdde
commit 2a39663ab6

View file

@ -1262,11 +1262,11 @@ static void thread_func(void *userdata) {
if (u->core->realtime_scheduling) if (u->core->realtime_scheduling)
pa_make_realtime(u->core->realtime_priority); pa_make_realtime(u->core->realtime_priority);
pa_thread_mq_install(&u->thread_mq);
if (start_stream_fd(u) < 0) if (start_stream_fd(u) < 0)
goto fail; goto fail;
pa_thread_mq_install(&u->thread_mq);
for (;;) { for (;;) {
struct pollfd *pollfd; struct pollfd *pollfd;
int ret; int ret;