mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 03:17:02 +02:00
output success on first connection to new ice-server
This commit is contained in:
parent
f69f59fa90
commit
ab414f65eb
2 changed files with 9 additions and 0 deletions
|
@ -1120,6 +1120,9 @@ void DomainServer::sendHeartbeatToIceServer() {
|
||||||
// reset the number of no reply ICE hearbeats
|
// reset the number of no reply ICE hearbeats
|
||||||
_noReplyICEHeartbeats = 0;
|
_noReplyICEHeartbeats = 0;
|
||||||
|
|
||||||
|
// reset the connection flag for ICE server
|
||||||
|
_connectedToICEServer = false;
|
||||||
|
|
||||||
randomizeICEServerAddress();
|
randomizeICEServerAddress();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2073,6 +2076,11 @@ void DomainServer::processICEServerHeartbeatDenialPacket(QSharedPointer<Received
|
||||||
void DomainServer::processICEServerHeartbeatACK(QSharedPointer<ReceivedMessage> message) {
|
void DomainServer::processICEServerHeartbeatACK(QSharedPointer<ReceivedMessage> message) {
|
||||||
// we don't do anything with this ACK other than use it to tell us to keep talking to the same ice-server
|
// we don't do anything with this ACK other than use it to tell us to keep talking to the same ice-server
|
||||||
_noReplyICEHeartbeats = 0;
|
_noReplyICEHeartbeats = 0;
|
||||||
|
|
||||||
|
if (!_connectedToICEServer) {
|
||||||
|
_connectedToICEServer = true;
|
||||||
|
qInfo() << "Connected to ice-server at" << _iceServerSocket;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void DomainServer::handleKeypairChange() {
|
void DomainServer::handleKeypairChange() {
|
||||||
|
|
|
@ -172,6 +172,7 @@ private:
|
||||||
QTimer* _iceAddressLookupTimer { nullptr }; // this looks like a dangling pointer but is parented to the DomainServer
|
QTimer* _iceAddressLookupTimer { nullptr }; // this looks like a dangling pointer but is parented to the DomainServer
|
||||||
int _iceAddressLookupID { -1 };
|
int _iceAddressLookupID { -1 };
|
||||||
int _noReplyICEHeartbeats { 0 };
|
int _noReplyICEHeartbeats { 0 };
|
||||||
|
bool _connectedToICEServer { false };
|
||||||
|
|
||||||
friend class DomainGatekeeper;
|
friend class DomainGatekeeper;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue