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

Commit 7dce61f0 authored by Dmitri Plotnikov's avatar Dmitri Plotnikov Committed by Android (Google) Code Review
Browse files

Merge "Catch RejectedExecutionException in BatteryExternalStatsWorker" into main

parents 2c00da4e 21431c63
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -386,7 +386,11 @@ public class BatteryExternalStatsWorker implements BatteryStatsImpl.ExternalStat
            }
        }

        try {
            return mExecutorService.schedule(syncRunnable, delayMillis, TimeUnit.MILLISECONDS);
        } catch (RejectedExecutionException e) {
            return CompletableFuture.failedFuture(e);
        }
    }

    public synchronized Future<?> scheduleWrite() {