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

Commit 561a0823 authored by Łukasz Rymanowski's avatar Łukasz Rymanowski
Browse files

BluetoothLeAudio: Remove not needed catch

Since we throw IllegalStateException there is no need to catch it.

Bug: 150670922
Test: compile/manual
Sponsor: @jpawlowski
Change-Id: Iaa719e727a4632f95ed681340b923de28f6aaacc
parent b238506b
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -960,9 +960,8 @@ public final class BluetoothLeAudio implements BluetoothProfile, AutoCloseable {
                        service.registerCallback(mCallback, mAttributionSource, recv);
                        recv.awaitResultNoInterrupt(getSyncTimeout()).getValue(null);
                    }
                } catch (IllegalStateException | TimeoutException e) {
                } catch (TimeoutException e) {
                    Log.e(TAG, e.toString() + "\n" + Log.getStackTraceString(new Throwable()));
                    throw new IllegalStateException("Unexpected error", e);
                } catch (RemoteException e) {
                    throw e.rethrowFromSystemServer();
                }