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

Commit 3fc68797 authored by Jakub Pawłowski's avatar Jakub Pawłowski Committed by Gerrit Code Review
Browse files

Merge "BluetoothLeAudio: Remove not needed catch"

parents 4ce0cf7c 561a0823
Loading
Loading
Loading
Loading
+1 −2
Original line number Original line Diff line number Diff line
@@ -960,9 +960,8 @@ public final class BluetoothLeAudio implements BluetoothProfile, AutoCloseable {
                        service.registerCallback(mCallback, mAttributionSource, recv);
                        service.registerCallback(mCallback, mAttributionSource, recv);
                        recv.awaitResultNoInterrupt(getSyncTimeout()).getValue(null);
                        recv.awaitResultNoInterrupt(getSyncTimeout()).getValue(null);
                    }
                    }
                } catch (IllegalStateException | TimeoutException e) {
                } catch (TimeoutException e) {
                    Log.e(TAG, e.toString() + "\n" + Log.getStackTraceString(new Throwable()));
                    Log.e(TAG, e.toString() + "\n" + Log.getStackTraceString(new Throwable()));
                    throw new IllegalStateException("Unexpected error", e);
                } catch (RemoteException e) {
                } catch (RemoteException e) {
                    throw e.rethrowFromSystemServer();
                    throw e.rethrowFromSystemServer();
                }
                }