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

Modified Files:
        MailFolderCC.cpp 
Log Message:
fix for the crash when connection is lost while threading the messages on server

Index: MailFolderCC.cpp
===================================================================
RCS file: /cvsroot/mahogany/M/src/mail/MailFolderCC.cpp,v
retrieving revision 1.607
retrieving revision 1.608
diff -b -u -2 -r1.607 -r1.608
--- MailFolderCC.cpp    26 Apr 2002 10:55:38 -0000      1.607
+++ MailFolderCC.cpp    27 Apr 2002 10:20:55 -0000      1.608
@@ -4430,8 +4430,16 @@
             return true;
          }
-         else
+         else if ( IsOpened() )
          {
+            // it was really an error with threading, how strange
             wxLogWarning(_("Server side threading failed, trying to thread "
                            "messages locally."));
+         }
+         else // folder closed
+         {
+            // we lost connection while threading
+            wxLogWarning(_("Connection lost while threading messages."));
+
+            return false;
          }
       }


_______________________________________________
Mahogany-cvsupdates mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/mahogany-cvsupdates

Reply via email to