Author: xor
Date: 2008-11-04 12:39:44 +0000 (Tue, 04 Nov 2008)
New Revision: 23308

Modified:
   trunk/plugins/FMSPlugin/FMSBoard.java
Log:
Synchronization.

Modified: trunk/plugins/FMSPlugin/FMSBoard.java
===================================================================
--- trunk/plugins/FMSPlugin/FMSBoard.java       2008-11-04 12:34:59 UTC (rev 
23307)
+++ trunk/plugins/FMSPlugin/FMSBoard.java       2008-11-04 12:39:44 UTC (rev 
23308)
@@ -64,7 +64,8 @@
        public synchronized void addMessage(FMSMessage newMessage) throws 
UpdatableSortedLinkedListKilledException {    
                db.store(newMessage);
                db.commit();
-
+               
+               synchronized(newMessage) {
                if(!newMessage.isThread())
                {
                        FreenetURI parentURI = newMessage.getParentURI();
@@ -93,6 +94,7 @@
                }
 
                linkOrphansToNewParent(newMessage);
+               }
        }
 
        private synchronized void linkOrphansToNewParent(FMSMessage newMessage) 
throws UpdatableSortedLinkedListKilledException {

_______________________________________________
cvs mailing list
[email protected]
http://emu.freenetproject.org/cgi-bin/mailman/listinfo/cvs

Reply via email to