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

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

Merge "ShellSubscriber: Avoid rollover bug" into rvc-dev

parents 98bc8e9c f0f1d836
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -41,7 +41,7 @@ void ShellSubscriber::startNewSubscription(int in, int out, int timeoutSec) {

    // critical-section
    std::unique_lock<std::mutex> lock(mMutex);
    if (myToken < mToken) {
    if (myToken != mToken) {
        // Some other subscription has already come in. Stop.
        return;
    }
+1 −1
Original line number Diff line number Diff line
@@ -108,7 +108,7 @@ private:

    std::shared_ptr<SubscriptionInfo> mSubscriptionInfo = nullptr;

    int mToken;
    int mToken = 0;
};

}  // namespace statsd