diff --git a/src/modules/bluetooth/module-bluez5-device.c b/src/modules/bluetooth/module-bluez5-device.c index ab1bc098e..55f0c31e6 100644 --- a/src/modules/bluetooth/module-bluez5-device.c +++ b/src/modules/bluetooth/module-bluez5-device.c @@ -2439,6 +2439,9 @@ static pa_hook_result_t transport_state_changed_cb(pa_bluetooth_discovery *y, pa if (t->device == u->device) handle_transport_state_change(u, t); + if (t == u->transport && t->state <= PA_BLUETOOTH_TRANSPORT_STATE_DISCONNECTED) + u->transport = NULL; + return PA_HOOK_OK; }