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

List:       kde-commits
Subject:    oscar_rewrite: kdenetwork/kopete/protocols/oscar/liboscar
From:       Matt Rogers <mattr () kde ! org>
Date:       2004-11-30 4:00:57
Message-ID: 20041130040057.C0C401B9B7 () office ! kde ! org
[Download RAW message or body]

CVS commit by mattr: 

Delay the start of stage two to give additional time for socket cleanups


  M +6 -2      client.cpp   1.1.2.53
  M +3 -0      client.h   1.1.2.29


--- kdenetwork/kopete/protocols/oscar/liboscar/client.cpp  #1.1.2.52:1.1.2.53
@@ -232,5 +232,5 @@ void Client::streamConnected()
         kdDebug(OSCAR_RAW_DEBUG) << k_funcinfo << endl;
         if ( m_loginTaskTwo )
-                m_loginTaskTwo->go( true );
+                QTimer::singleShot(50, this, SLOT( goStageTwo() ) );
 }
 
@@ -251,5 +251,4 @@ void Client::lt_loginFinished()
                 ssTask->go( true ); //fire and forget
                 m_loginTaskTwo->safeDelete();
-                m_loginTaskTwo = 0;
         }
         else if ( m_loginTask ) //object's existence determines the stage we just finished
@@ -295,4 +294,9 @@ void Client::startStageTwo()
 }
 
+void Client::goStageTwo()
+{
+        m_loginTaskTwo->go( true );
+}
+
 void Client::serviceSetupFinished()
 {

--- kdenetwork/kopete/protocols/oscar/liboscar/client.h  #1.1.2.28:1.1.2.29
@@ -184,4 +184,7 @@ protected slots:
         void startStageTwo();
 
+        /** Singleshot time to call go for stage two login */
+        void goStageTwo();
+
         /**
          * A login task finished. For stage one, this means we've either errored


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

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