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

Commit caae561e authored by Philip P. Moltmann's avatar Philip P. Moltmann Committed by android-build-merger
Browse files

Merge "Properly disconnect after skipping an operation." into pi-dev am: cd7a174c

am: 57af3803

Change-Id: I4d6057528cf25ed78285812b11b8bb633ae84542
parents 2df76232 57af3803
Loading
Loading
Loading
Loading
+15 −16
Original line number Diff line number Diff line
@@ -926,9 +926,7 @@ public class SoundTriggerService extends SystemService {
                            Slog.w(TAG, mPuuid + ": Dropped operation as too many operations were "
                                    + "run in last 24 hours");
                        }
                        return;
                    }

                    } else {
                        mNumOps.addOp(currentTime);

                        // Find a free opID
@@ -946,6 +944,7 @@ public class SoundTriggerService extends SystemService {
                        } catch (Exception e) {
                            Slog.e(TAG, mPuuid + ": Could not run operation " + opId, e);
                        }
                    }

                    // Unbind from service if no operations are left (i.e. if the operation failed)
                    if (mPendingOps.isEmpty() && mRunningOpIds.isEmpty()) {