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

Commit ccdc9e2b authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Automerger Merge Worker
Browse files

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

Change-Id: I3c9118b5df7f376b3cc46b72abac27a59f61edc9
parents fc86916b f1d96d48
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