summaryrefslogtreecommitdiff
path: root/qt4
diff options
context:
space:
mode:
authorOlli Salli <ollisal@gmail.com>2011-09-13 17:12:01 +0300
committerOlli Salli <ollisal@gmail.com>2011-10-10 19:17:42 +0300
commit1f4d70271e0dd49f3a16681cf23fc5a2752ad8ad (patch)
tree2c6a07fc67b4f20680da32a9e4baa183e3fea442 /qt4
parent5bf7abd9dbc73ed77f550f4079f097aec7e3b7bc (diff)
Similarly to TCP, fall back to Localhost AC in STC if Creds is not supported for Unix
Diffstat (limited to 'qt4')
-rw-r--r--qt4/TelepathyQt4/stream-tube-client.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/qt4/TelepathyQt4/stream-tube-client.cpp b/qt4/TelepathyQt4/stream-tube-client.cpp
index 0d4cfd7b4..3fe9d9b46 100644
--- a/qt4/TelepathyQt4/stream-tube-client.cpp
+++ b/qt4/TelepathyQt4/stream-tube-client.cpp
@@ -133,6 +133,11 @@ StreamTubeClient::TubeWrapper::TubeWrapper(
StreamTubeClient *parent)
: QObject(parent), mAcc(acc), mTube(tube), mSourcePort(0)
{
+ if (requireCredentials && !tube->supportsUnixSocketsWithCredentials()) {
+ debug() << "StreamTubeClient falling back to Localhost AC for tube" << tube->objectPath();
+ requireCredentials = false;
+ }
+
connect(tube->acceptTubeAsUnixSocket(requireCredentials),
SIGNAL(finished(Tp::PendingOperation*)),
SLOT(onTubeAccepted(Tp::PendingOperation*)));