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

Commit 952def58 authored by Michael Dooley's avatar Michael Dooley Committed by android-build-merger
Browse files

Merge "Don't crash if SoundTriggerDetectionService client is gone or if there...

Merge "Don't crash if SoundTriggerDetectionService client is gone or if there is a remote exception while finishing an opperation" into pi-dev am: 74b68635
am: ce408cbc

Change-Id: Ibb990f69745fd90b9d8a9739cc57b41cc5b87e17
parents 0c0cc401 ce408cbc
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -191,13 +191,14 @@ public abstract class SoundTriggerDetectionService extends Service {
                client = mClients.get(uuid);

                if (client == null) {
                    throw new IllegalStateException("operationFinished called, but no client for "
                    Log.w(LOG_TAG, "operationFinished called, but no client for "
                            + uuid + ". Was this called after onDisconnected?");
                    return;
                }
            }
            client.onOpFinished(opId);
        } catch (RemoteException e) {
            e.rethrowFromSystemServer();
            Log.e(LOG_TAG, "operationFinished, remote exception for client " + uuid, e);
        }
    }