1
0
mirror of https://github.com/moparisthebest/k-9 synced 2024-08-13 17:03:48 -04: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()
{
MailService.saveLastCheckEnd(getApplication());
MessagingController controller = MessagingController.getInstance(getApplication());
controller.setCheckMailListener(null);
MailService.saveLastCheckEnd(getApplication());
MailService.actionReschedulePoll(PollService.this, null);
wakeLockRelease();
if (K9.DEBUG)