aboutsummaryrefslogtreecommitdiff
path: root/src/base/QXmppStun.cpp
diff options
context:
space:
mode:
authorJeremy Lainé <jeremy.laine@m4x.org>2015-08-24 14:30:42 +0200
committerJeremy Lainé <jeremy.laine@m4x.org>2015-08-24 14:30:42 +0200
commit4cb8dd33b72801b89b9f021d8837903e87cfd1e7 (patch)
tree578664ec491355bac8962a500bbdfd4576be94e3 /src/base/QXmppStun.cpp
parente8e29c75a95dcefe2df112e516caf9a48e5a2f35 (diff)
downloadqxmpp-4cb8dd33b72801b89b9f021d8837903e87cfd1e7.tar.gz
fix sending triggered check
Diffstat (limited to 'src/base/QXmppStun.cpp')
-rw-r--r--src/base/QXmppStun.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/base/QXmppStun.cpp b/src/base/QXmppStun.cpp
index a36803ec..e52e1571 100644
--- a/src/base/QXmppStun.cpp
+++ b/src/base/QXmppStun.cpp
@@ -1935,8 +1935,10 @@ CandidatePair *QXmppIceComponent::addRemoteCandidate(QUdpSocket *socket, const Q
pair->socket == socket)
return pair;
+ // 7.2.1.3. Learning Peer Reflexive Candidates
QXmppJingleCandidate candidate;
candidate.setComponent(d->component);
+ //candidate.setFoundation(..);
candidate.setHost(host);
candidate.setId(QXmppUtils::generateStanzaHash(10));
candidate.setPort(port);
@@ -2203,7 +2205,7 @@ void QXmppIceComponent::handleDatagram(const QByteArray &buffer, const QHostAddr
pair->checked |= QIODevice::ReadOnly;
}
- if (!d->iceControlling && !d->activePair && !d->remoteUser.isEmpty())
+ if (!d->iceControlling && pair->state() != CandidatePair::SucceededState && !d->remoteUser.isEmpty())
{
// send a triggered connectivity test
QXmppStunMessage message;