Author: norman Date: Sun Oct 9 18:59:12 2011 New Revision: 1180688 URL: http://svn.apache.org/viewvc?rev=1180688&view=rev Log: First unregister listener on deselect then release resources
Modified: james/imap/trunk/processor/src/main/java/org/apache/james/imap/processor/base/SelectedMailboxImpl.java Modified: james/imap/trunk/processor/src/main/java/org/apache/james/imap/processor/base/SelectedMailboxImpl.java URL: http://svn.apache.org/viewvc/james/imap/trunk/processor/src/main/java/org/apache/james/imap/processor/base/SelectedMailboxImpl.java?rev=1180688&r1=1180687&r2=1180688&view=diff ============================================================================== --- james/imap/trunk/processor/src/main/java/org/apache/james/imap/processor/base/SelectedMailboxImpl.java (original) +++ james/imap/trunk/processor/src/main/java/org/apache/james/imap/processor/base/SelectedMailboxImpl.java Sun Oct 9 18:59:12 2011 @@ -195,12 +195,6 @@ public class SelectedMailboxImpl impleme @Override public synchronized void deselect() { - uidToMsn.clear(); - msnToUid.clear(); - flagUpdateUids.clear(); - - expungedUids.clear(); - recentUids.clear(); MailboxSession mailboxSession = ImapSessionUtils.getMailboxSession(session); try { @@ -210,6 +204,14 @@ public class SelectedMailboxImpl impleme session.getLog().info("Unable to remove listener " + this + " from mailbox while closing it", e); } } + + uidToMsn.clear(); + msnToUid.clear(); + flagUpdateUids.clear(); + + expungedUids.clear(); + recentUids.clear(); + } --------------------------------------------------------------------- To unsubscribe, e-mail: server-dev-unsubscr...@james.apache.org For additional commands, e-mail: server-dev-h...@james.apache.org