@@ -36,7 +36,9 @@ public class OppoBackgroundTasks implements ApplicationRunner {
executor.submit(() -> {
while (!stopped.get()) {
try {
- worker.runOnce();
+ if (worker.runOnce() == 0) {
+ sleep(200);
+ }
} catch (Exception e) {
log.error("oppo cold worker: {}", e.getMessage(), e);
sleep(1000);