james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nor...@apache.org
Subject svn commit: r1146243 - /james/imap/trunk/processor/src/main/java/org/apache/james/imap/processor/base/MailboxEventAnalyser.java
Date Wed, 13 Jul 2011 19:09:57 GMT
Author: norman
Date: Wed Jul 13 19:09:57 2011
New Revision: 1146243

URL: http://svn.apache.org/viewvc?rev=1146243&view=rev
Log:
Make sure the MailboxEventAnalyser is 100% thread-safe. See IMAP-320

Modified:
    james/imap/trunk/processor/src/main/java/org/apache/james/imap/processor/base/MailboxEventAnalyser.java

Modified: james/imap/trunk/processor/src/main/java/org/apache/james/imap/processor/base/MailboxEventAnalyser.java
URL: http://svn.apache.org/viewvc/james/imap/trunk/processor/src/main/java/org/apache/james/imap/processor/base/MailboxEventAnalyser.java?rev=1146243&r1=1146242&r2=1146243&view=diff
==============================================================================
--- james/imap/trunk/processor/src/main/java/org/apache/james/imap/processor/base/MailboxEventAnalyser.java
(original)
+++ james/imap/trunk/processor/src/main/java/org/apache/james/imap/processor/base/MailboxEventAnalyser.java
Wed Jul 13 19:09:57 2011
@@ -92,7 +92,7 @@ public class MailboxEventAnalyser extend
      * 
      * @see org.apache.james.mailbox.MailboxListener#event(org.apache.james.mailbox.MailboxListener.Event)
      */
-    public void event(Event event) {
+    public synchronized void event(Event event) {
 
         // Check if the event was for the mailbox we are observing
         if (event.getMailboxPath().equals(getMailboxPath())) {



---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org


Mime
View raw message