[Telepathy-commits] [telepathy-qt4/master] Oggis-review: Fix onClosed() to change channel to readinessDead if the introspection is not already complete.

George Goldberg george.goldberg at collabora.co.uk
Fri Nov 7 05:40:07 PST 2008


---
 TelepathyQt4/cli-channel.cpp |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/TelepathyQt4/cli-channel.cpp b/TelepathyQt4/cli-channel.cpp
index 44a003a..a8a1c29 100644
--- a/TelepathyQt4/cli-channel.cpp
+++ b/TelepathyQt4/cli-channel.cpp
@@ -637,8 +637,10 @@ void Channel::onClosed()
 {
     debug() << "Got Channel::Closed";
 
-    if ((mPriv->readiness != ReadinessDead) && (mPriv->readiness != ReadinessClosed))
+    if (mPriv->readiness == ReadinessFull)
         mPriv->changeReadiness(ReadinessClosed);
+    else if ((mPriv->readiness != ReadinessDead) && (mPriv->readiness != ReadinessClosed))
+        mPriv->changeReadiness(ReadinessDead);
 }
 
 void Channel::gotGroupProperties(QDBusPendingCallWatcher* watcher)
-- 
1.5.6.5




More information about the Telepathy-commits mailing list