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

Commit d0ef283b authored by Zach Johnson's avatar Zach Johnson Committed by Automerger Merge Worker
Browse files

Merge "Handle RemoteException when getstate exception" am: c89178f7

Original change: https://android-review.googlesource.com/c/platform/packages/modules/Bluetooth/+/1984750

Change-Id: Iab2ada45ede955ab8be2a48e464e809cee0db7b9
parents ad039c93 c89178f7
Loading
Loading
Loading
Loading
+1 −4
Original line number Diff line number Diff line
@@ -1163,11 +1163,8 @@ public final class BluetoothAdapter {
                mService.getState(recv);
                return recv.awaitResultNoInterrupt(getSyncTimeout()).getValue(state);
            }
        } catch (TimeoutException e) {
        } catch (RemoteException | TimeoutException e) {
            Log.e(TAG, e.toString() + "\n" + Log.getStackTraceString(new Throwable()));
        } catch (RemoteException e) {
            Log.e(TAG, "", e);
            e.rethrowFromSystemServer();
        } finally {
            mServiceLock.readLock().unlock();
        }