From: Mikel Astiz <mikel.astiz@xxxxxxxxxxxx> If sink and sources exist during shutdown, the streams need to be moved exactly as when the profile is being set to off. --- src/modules/bluetooth/module-bluetooth-device.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/modules/bluetooth/module-bluetooth-device.c b/src/modules/bluetooth/module-bluetooth-device.c index badf296..dd255e9 100644 --- a/src/modules/bluetooth/module-bluetooth-device.c +++ b/src/modules/bluetooth/module-bluetooth-device.c @@ -2688,13 +2688,16 @@ int pa__get_n_used(pa_module *m) { void pa__done(pa_module *m) { struct userdata *u; + pa_queue *inputs, *outputs; pa_assert(m); if (!(u = m->userdata)) return; + move_all_start(u, &inputs, &outputs); stop_thread(u); + move_all_end(u, inputs, outputs); if (USE_SCO_OVER_PCM(u)) restore_sco_volume_callbacks(u); -- 1.7.11.4