Commit 0ff55afd authored by pali's avatar pali

fixup! bluetooth: Fix device_count_disconnected_profiles

parent 25f32006
......@@ -272,6 +272,9 @@ static unsigned device_count_disconnected_profile_uuids(pa_bluetooth_device *dev
bluetooth_profile_count = pa_bluetooth_profile_count();
for (profile = 0; profile < bluetooth_profile_count; profile++) {
if (profile == PA_BLUETOOTH_PROFILE_OFF)
continue;
if (!device_supports_profile(device, profile) || pa_bluetooth_profile_is_a2dp(profile))
continue;
......@@ -310,6 +313,9 @@ static void wait_for_profiles_cb(pa_mainloop_api *api, pa_time_event* event, con
bluetooth_profile_count = pa_bluetooth_profile_count();
for (profile = 0; profile < bluetooth_profile_count; profile++) {
if (profile == PA_BLUETOOTH_PROFILE_OFF)
continue;
if (device_is_profile_connected(device, profile))
continue;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment