Merge branch 'protocol' of github.com:Atlante45/hifi into protocol

This commit is contained in:
Ryan Huffman 2015-07-17 09:59:05 -07:00
commit 68564a79b0

View file

@ -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