mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-04 13:29:59 -05:00
bluetooth: Do not unload module-bluetooth-device on ERR or HUP
This happens in the following scenario : An HandsfreeGateway connects RFCOMM and then SCO. A card appears in PA and can be used. If for some reason, SCO is disconnected, module-bluetooth-device is unloaded. The card will disappear, even if RFCOMM is still connected. After that, it is not possible to connect SCO again from PA.
This commit is contained in:
parent
3f6aa03912
commit
54f3b9a6fa
1 changed files with 0 additions and 1 deletions
|
|
@ -1721,7 +1721,6 @@ static void thread_func(void *userdata) {
|
||||||
fail:
|
fail:
|
||||||
/* If this was no regular exit from the loop we have to continue processing messages until we receive PA_MESSAGE_SHUTDOWN */
|
/* If this was no regular exit from the loop we have to continue processing messages until we receive PA_MESSAGE_SHUTDOWN */
|
||||||
pa_log_debug("IO thread failed");
|
pa_log_debug("IO thread failed");
|
||||||
pa_asyncmsgq_post(u->thread_mq.outq, PA_MSGOBJECT(u->core), PA_CORE_MESSAGE_UNLOAD_MODULE, u->module, 0, NULL, NULL);
|
|
||||||
pa_asyncmsgq_wait_for(u->thread_mq.inq, PA_MESSAGE_SHUTDOWN);
|
pa_asyncmsgq_wait_for(u->thread_mq.inq, PA_MESSAGE_SHUTDOWN);
|
||||||
|
|
||||||
finish:
|
finish:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue