mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 18:23:54 +02:00
Merge branch 'protocol' of github.com:Atlante45/hifi into protocol
This commit is contained in:
commit
68564a79b0
1 changed files with 5 additions and 4 deletions
|
@ -3820,10 +3820,11 @@ void Application::domainChanged(const QString& domainHostname) {
|
|||
}
|
||||
|
||||
void Application::handleDomainConnectionDeniedPacket(QSharedPointer<NLPacket> packet) {
|
||||
QDataStream packetStream(packet.data());
|
||||
|
||||
QString reason;
|
||||
packetStream >> reason;
|
||||
// Read deny reason from packet
|
||||
quint16 reasonSize;
|
||||
packet->readPrimitive(&reasonSize);
|
||||
QString reason = QString::fromUtf8(packet->getPayload() + packet->pos(), reasonSize);
|
||||
packet->seek(packet->pos() + reasonSize);
|
||||
|
||||
// output to the log so the user knows they got a denied connection request
|
||||
// and check and signal for an access token so that we can make sure they are logged in
|
||||
|
|
Loading…
Reference in a new issue