Add keep alive wait to log

This commit is contained in:
M66B 2018-10-07 17:24:21 +00:00
parent 70fbc5aa6a
commit 8f784c8954
1 changed files with 2 additions and 1 deletions

View File

@ -954,7 +954,8 @@ public class ServiceSynchronize extends LifecycleService {
try {
// Keep store alive
while (state.running) {
Log.i(Helper.TAG, account.name + " wait");
EntityLog.log(this, account.name + " wait=" + account.poll_interval);
synchronized (state) {
try {
state.wait(account.poll_interval * 60 * 1000L);