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

Commit 3487b4e1 authored by Makoto Onuki's avatar Makoto Onuki
Browse files

Remove unnecessary wtf().

The wtf case could happen if a job started before [readyToSync] is set,
and the job scheduler happens to decide to call onStopJob() before
jobFinished() is processed.

Test: Build, boot
Change-Id: I7fe31d9775f1f65886296a74243eab1c0d320450
Fixes: 116007237
parent 94ae766a
Loading
Loading
Loading
Loading
+1 −4
Original line number Diff line number Diff line
@@ -141,10 +141,7 @@ public class SyncJobService extends JobService {
            final long runtime = nowUptime - startUptime;


            if (startUptime == 0) {
                wtf("Job " + jobId + " start uptime not found: "
                        + " params=" + jobParametersToString(params));
            } else if (runtime > 60 * 1000) {
            if (runtime > 60 * 1000) {
                // WTF if startSyncH() hasn't happened, *unless* onStopJob() was called too soon.
                // (1 minute threshold.)
                // Also don't wtf when it's not ready to sync.