diff --git a/src/com/android/exchange/ExchangeService.java b/src/com/android/exchange/ExchangeService.java index ff0cd3582..37ae4d3c0 100644 --- a/src/com/android/exchange/ExchangeService.java +++ b/src/com/android/exchange/ExchangeService.java @@ -1795,8 +1795,8 @@ public class ExchangeService extends Service implements Runnable { void maybeStartExchangeServiceThread() { // Start our thread... // See if there are any EAS accounts; otherwise, just go away - if (EmailContent.count(this, HostAuth.CONTENT_URI, WHERE_PROTOCOL_EAS, null) > 0) { - if (sServiceThread == null || !sServiceThread.isAlive()) { + if (sServiceThread == null || !sServiceThread.isAlive()) { + if (EmailContent.count(this, HostAuth.CONTENT_URI, WHERE_PROTOCOL_EAS, null) > 0) { log(sServiceThread == null ? "Starting thread..." : "Restarting thread..."); sServiceThread = new Thread(this, "ExchangeService"); INSTANCE = this;