mirror of
https://github.com/overte-org/overte.git
synced 2025-04-11 15:38:18 +02:00
add extra debug to IceServer
This commit is contained in:
parent
010cbd9934
commit
b1d240defd
1 changed files with 5 additions and 0 deletions
|
@ -82,6 +82,9 @@ void IceServer::processDatagrams() {
|
||||||
SharedNetworkPeer matchingPeer = _activePeers.value(connectRequestID);
|
SharedNetworkPeer matchingPeer = _activePeers.value(connectRequestID);
|
||||||
|
|
||||||
if (matchingPeer) {
|
if (matchingPeer) {
|
||||||
|
|
||||||
|
qDebug() << "Sending information for peer" << connectRequestID << "to peer" << senderUUID;
|
||||||
|
|
||||||
// we have the peer they want to connect to - send them pack the information for that peer
|
// we have the peer they want to connect to - send them pack the information for that peer
|
||||||
sendPeerInformationPacket(*(matchingPeer.data()), &sendingSockAddr);
|
sendPeerInformationPacket(*(matchingPeer.data()), &sendingSockAddr);
|
||||||
|
|
||||||
|
@ -90,6 +93,8 @@ void IceServer::processDatagrams() {
|
||||||
|
|
||||||
NetworkPeer dummyPeer(senderUUID, publicSocket, localSocket);
|
NetworkPeer dummyPeer(senderUUID, publicSocket, localSocket);
|
||||||
sendPeerInformationPacket(dummyPeer, matchingPeer->getActiveSocket());
|
sendPeerInformationPacket(dummyPeer, matchingPeer->getActiveSocket());
|
||||||
|
} else {
|
||||||
|
qDebug() << "Peer" << senderUUID << "asked for" << connectRequestID << "but no matching peer found";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue