Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 344c42d1 authored by Łukasz Rymanowski's avatar Łukasz Rymanowski
Browse files

leaudio: Fix possible crash

Bug: 263411708
Test: atest BluetoothInstrumentationTests
Test: manual, connect leaudio set while streaming to other leaudio
Tag: #feature
Change-Id: I48d2d674f5febdd0af7227b342e26f2f45937c53
parent a82af82d
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -2360,6 +2360,11 @@ class LeAudioClientImpl : public LeAudioClient {
      return;
    }

    if (!stream_conf->conf) {
      LOG_INFO("Configuration not yet set. Nothing to do now");
      return;
    }

    auto num_of_devices =
        get_num_of_devices_in_configuration(stream_conf->conf);