Skip to content

bluez5: setting this->transport = NULL should block data thread

P V requested to merge pvir/pipewire:transport-threadsafety into master

Since the data thread accesses the spa_bt_transport, its destroy event needs to sync with data thread to avoid races.

Also check transport is present in places that need it.

Fixes a crash seen in a2dp_on_timeout when BT connection dropped suddenly, and other similar ones. Cf. 7f6339e3

Edited by P V

Merge request reports