mirror of
https://github.com/signalapp/Signal-Server.git
synced 2026-12-02 10:16:53 +00:00
Ensure active future is always completed
This commit is contained in:
1 parent
d5b0d99a54
commit
530b2a310f
2 files changed
+14
-11
No files matched your search
+5
-2
@@ -107,8 +107,11 @@ public abstract class ManagedPeriodicWork implements Managed {
|
||||
Util.sleep(sleepDurationAfterUnexpectedException.toMillis());
|
||||
|
||||
} finally {
|
||||
lock.releaseActiveWork(workerId);
|
||||
activeExecutionFuture.get().complete(null);
|
||||
try {
|
||||
lock.releaseActiveWork(workerId);
|
||||
} finally {
|
||||
activeExecutionFuture.get().complete(null);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user