[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    kdepim/kmail
From:       Carsten Burghardt <burghardt () kde ! org>
Date:       2005-05-01 13:45:01
Message-ID: 20050501134501.67DD266C () office ! kde ! org
[Download RAW message or body]

CVS commit by burghard: 

makeConnection did not notice that the slave had no connection.
This should fix the 'kmail does not reconnect' bugs I think, at least I cannot reproduce it
anymore.


  M +5 -2      imapaccountbase.cpp   1.122


--- kdepim/kmail/imapaccountbase.cpp  #1.121:1.122
@@ -490,5 +490,4 @@ namespace KMail {
       const QString &errorMsg)
   {
-    kdDebug() << k_funcinfo << endl;
       if (aSlave != mSlave) return;
       handleError( errorCode, errorMsg, 0, QString::null, true );
@@ -499,4 +498,9 @@ namespace KMail {
           mSlaveConnectionError = true;
           mOwner->resetConnectionList( this );
+          if ( mSlave )
+          {
+            KIO::Scheduler::disconnectSlave( slave() );
+            mSlave = 0;
+          }
         }
         emit connectionResult( errorCode, errorMsg );
@@ -507,5 +511,4 @@ namespace KMail {
   void ImapAccountBase::slotSchedulerSlaveConnected(KIO::Slave *aSlave)
   {
-    kdDebug() << k_funcinfo << endl;
       if (aSlave != mSlave) return;
       mSlaveConnected = true;


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic