parent
87a7f84580
commit
dac9c15266
|
@ -1788,7 +1788,7 @@ public class ExchangeService extends Service implements Runnable {
|
|||
synchronized (sSyncLock) {
|
||||
// Start our thread...
|
||||
// See if there are any EAS accounts; otherwise, just go away
|
||||
if (sServiceThread != null && sServiceThread.isAlive()) {
|
||||
if (sServiceThread != null || sServiceThread.isAlive()) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
@ -1801,7 +1801,7 @@ public class ExchangeService extends Service implements Runnable {
|
|||
WHERE_PROTOCOL_EAS, null) > 0) {
|
||||
log(sServiceThread == null ? "Starting thread..."
|
||||
: "Restarting thread...");
|
||||
sServiceThread = new Thread(service, "ExchangeService");
|
||||
sServiceThread = new Thread(this, "ExchangeService");
|
||||
INSTANCE = service;
|
||||
sServiceThread.start();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue