1
0
mirror of https://github.com/moparisthebest/k-9 synced 2024-11-30 21:22:26 -05:00

Remove controller first

This commit is contained in:
Daniel Applebaum 2010-04-06 02:38:22 +00:00
parent 9d2a4c3af9
commit 3c7eea7fa5

View File

@ -141,10 +141,11 @@ public class PollService extends CoreService
private void release() private void release()
{ {
MailService.saveLastCheckEnd(getApplication());
MessagingController controller = MessagingController.getInstance(getApplication()); MessagingController controller = MessagingController.getInstance(getApplication());
controller.setCheckMailListener(null); controller.setCheckMailListener(null);
MailService.saveLastCheckEnd(getApplication());
MailService.actionReschedulePoll(PollService.this, null); MailService.actionReschedulePoll(PollService.this, null);
wakeLockRelease(); wakeLockRelease();
if (K9.DEBUG) if (K9.DEBUG)