mirror of
https://github.com/signalapp/Signal-Server.git
synced 2026-12-01 13:36:47 +00:00
ApnPushNotifcationScheduler: always run worker thread at least once
This commit is contained in:
1 parent
8579babde6
commit
099932ae68
1 file changed
+2
-2
+2
-2
@@ -91,7 +91,7 @@ public class ApnPushNotificationScheduler implements Managed {
|
||||
|
||||
@Override
|
||||
public void run() {
|
||||
while (running.get()) {
|
||||
do {
|
||||
try {
|
||||
final long entriesProcessed = processNextSlot();
|
||||
|
||||
@@ -101,7 +101,7 @@ public class ApnPushNotificationScheduler implements Managed {
|
||||
} catch (Exception e) {
|
||||
logger.warn("Exception while operating", e);
|
||||
}
|
||||
}
|
||||
} while (running.get());
|
||||
}
|
||||
|
||||
private long processNextSlot() {
|
||||
|
||||
Reference in new issue
Block a user