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

Commit 33961892 authored by Robert Greenwalt's avatar Robert Greenwalt
Browse files

Don't start data-stall checks if not connected

We did this only if connected in most places, but screen-on/off didn't
care.  On no-radio devices it caused extra timers/wakeups that
didn't help anybody.

bug:6375908
Change-Id: Iba72da323de716acb0e67361b955c7381f18f67d
parent a0e0d580
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -1695,6 +1695,7 @@ public final class GsmDataConnectionTracker extends DataConnectionTracker {

    @Override
    protected void restartDataStallAlarm() {
        if (isConnected() == false) return;
        // To be called on screen status change.
        // Do not cancel the alarm if it is set with aggressive timeout.
        int nextAction = getRecoveryAction();