Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6d6a9d0f authored by Daniel Applebaum's avatar Daniel Applebaum
Browse files

Fixes Issue 1707

Eliminate extraneous spaces

Also, abort IMAP IDLE connection attempt if mConnection is null before
IDLEing.  Otherwise, we cannot set the idle timeout.

parent 64c7df60
Loading
Loading
Loading
Loading
+7 −5
Original line number Diff line number Diff line
@@ -2972,11 +2972,13 @@ public class ImapStore extends Store
                                receiver.setPushActive(getName(), true);
                                idling.set(true);
                                doneSent.set(false);
				if (mConnection == null)
				{
				    throw new MessagingException("No connection available for idling");
				}
				mConnection.setReadTimeout((getAccount().getIdleRefreshMinutes() * 60 * 1000) + IDLE_READ_TIMEOUT_INCREMENT);
                                untaggedResponses = executeSimpleCommand(COMMAND_IDLE, false, ImapFolderPusher.this);
                                idling.set(false);


                                delayTime.set(NORMAL_DELAY_TIME);
                                idleFailureCount.set(0);
                            }