Update of /cvsroot/mahogany/M/src/mail
In directory usw-pr-cvs1:/tmp/cvs-serv24737/src/mail

Modified Files:
        MailFolderCC.cpp 
Log Message:
added a hack forcing the closing of the folders kept alive because of the existence of 
the events holding a pointer to them to allow better connection reusing

Index: MailFolderCC.cpp
===================================================================
RCS file: /cvsroot/mahogany/M/src/mail/MailFolderCC.cpp,v
retrieving revision 1.614
retrieving revision 1.615
diff -b -u -2 -r1.614 -r1.615
--- MailFolderCC.cpp    3 May 2002 14:52:01 -0000       1.614
+++ MailFolderCC.cpp    3 May 2002 15:00:27 -0000       1.615
@@ -2436,4 +2436,15 @@
    }
 
+   // we need to dispatch the pending MEventFolderExpungeData events because
+   // they may keep the other folder(s) on the server we're going to open
+   // artificially opened thus preventing us from reusing the connection to it
+   // and forcing to open a new one even if the old one is going to be closed
+   // during the next main loop iteration
+   //
+   // ideally we should just dispatch MEventWithFolderData events, not all of
+   // the pending ones as this might cause problems but for now let's keep it
+   // simple and fix it when/if we find the problems with the current approach
+   MEventManager::DispatchPending();
+
    // lock cclient inside this block
    {


_______________________________________________________________

Have big pipes? SourceForge.net is looking for download mirrors. We supply
the hardware. You get the recognition. Email Us: [EMAIL PROTECTED]
_______________________________________________
Mahogany-cvsupdates mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/mahogany-cvsupdates

Reply via email to