1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2025-01-19 13:48:58 +00:00

Prevent race condition

This commit is contained in:
M66B 2020-05-20 08:56:59 +02:00
parent b53182fa20
commit 02734b20bc

View file

@ -3649,7 +3649,8 @@ class Core {
} }
long getIdleTime() { long getIdleTime() {
return (lastActivity == null ? 0 : SystemClock.elapsedRealtime() - lastActivity); Long last = lastActivity;
return (last == null ? 0 : SystemClock.elapsedRealtime() - last);
} }
long getSequence(long folder, int priority) { long getSequence(long folder, int priority) {