mirror of
https://github.com/M66B/FairEmail.git
synced 2025-12-31 01:51:24 +01:00
Cleanup
This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user