[Telepathy-commits] [telepathy-qt4/master] StreamedMediaChannel: Do not try to retrieve the stream contact if the handle is 0.
Andre Moreira Magalhaes (andrunko)
andre.magalhaes at collabora.co.uk
Fri Mar 20 06:54:34 PDT 2009
---
TelepathyQt4/Client/streamed-media-channel.cpp | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/TelepathyQt4/Client/streamed-media-channel.cpp b/TelepathyQt4/Client/streamed-media-channel.cpp
index 724b4ff..864453e 100644
--- a/TelepathyQt4/Client/streamed-media-channel.cpp
+++ b/TelepathyQt4/Client/streamed-media-channel.cpp
@@ -216,6 +216,11 @@ MediaStream::Private::Private(MediaStream *parent,
void MediaStream::Private::introspectContact(MediaStream::Private *self)
{
+ if (self->contactHandle == 0) {
+ self->readinessHelper->setIntrospectCompleted(FeatureContact, true);
+ return;
+ }
+
ContactManager *contactManager = self->channel->connection()->contactManager();
self->parent->connect(
contactManager->contactsForHandles(UIntList() << self->contactHandle),
--
1.5.6.5
More information about the telepathy-commits
mailing list