ApnPushNotifcationScheduler: always run worker thread at least once
This commit is contained in:
parent
8579babde6
commit
099932ae68
|
@ -91,7 +91,7 @@ public class ApnPushNotificationScheduler implements Managed {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void run() {
|
public void run() {
|
||||||
while (running.get()) {
|
do {
|
||||||
try {
|
try {
|
||||||
final long entriesProcessed = processNextSlot();
|
final long entriesProcessed = processNextSlot();
|
||||||
|
|
||||||
|
@ -101,7 +101,7 @@ public class ApnPushNotificationScheduler implements Managed {
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
logger.warn("Exception while operating", e);
|
logger.warn("Exception while operating", e);
|
||||||
}
|
}
|
||||||
}
|
} while (running.get());
|
||||||
}
|
}
|
||||||
|
|
||||||
private long processNextSlot() {
|
private long processNextSlot() {
|
||||||
|
|
Loading…
Reference in New Issue