Have SyncManager stopSelf if there are no EAS accounts

Change-Id: Icfca3a7f93a9eb382dca19b9f69c461e92eb6bd8
This commit is contained in:
Marc Blank 2009-09-04 22:20:37 -07:00
parent b8d0c55a05
commit f1f8e81628

View File

@ -26,7 +26,6 @@ import com.android.email.provider.EmailContent.HostAuthColumns;
import com.android.email.provider.EmailContent.Mailbox; import com.android.email.provider.EmailContent.Mailbox;
import com.android.email.provider.EmailContent.MailboxColumns; import com.android.email.provider.EmailContent.MailboxColumns;
import com.android.email.provider.EmailContent.Message; import com.android.email.provider.EmailContent.Message;
import com.android.email.provider.EmailContent.MessageColumns;
import com.android.email.provider.EmailContent.SyncColumns; import com.android.email.provider.EmailContent.SyncColumns;
import com.android.exchange.utility.FileLogger; import com.android.exchange.utility.FileLogger;
@ -667,6 +666,10 @@ public class SyncManager extends Service implements Runnable {
} }
maybeStartSyncManagerThread(); maybeStartSyncManagerThread();
if (sServiceThread == null) {
Log.d(TAG, "!!! EAS SyncManager stopping self");
stopSelf();
}
} }
@Override @Override