This commit is contained in:
M66B 2018-08-23 19:40:38 +00:00
parent 90225cb9f9
commit 63f52efd09
1 changed files with 0 additions and 12 deletions

View File

@ -67,7 +67,6 @@ import java.util.Map;
import java.util.Properties;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import java.util.concurrent.Semaphore;
import javax.mail.Address;
import javax.mail.FetchProfile;
@ -1552,17 +1551,6 @@ public class ServiceSynchronize extends LifecycleService {
}
}
private static void acquire(Semaphore semaphore, String name) {
boolean acquired = false;
while (!acquired)
try {
semaphore.acquire();
acquired = true;
} catch (InterruptedException ex) {
Log.e(Helper.TAG, name + " acquire " + ex.toString());
}
}
public static void start(Context context) {
ContextCompat.startForegroundService(context,
new Intent(context, ServiceSynchronize.class));