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

Commit cd7a174c authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

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

parents d41e669f 09dd8c47
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()) {