Log some warnings

This commit is contained in:
David Rowe 2021-08-29 14:19:39 +12:00
parent 1605039929
commit adc94a280e
2 changed files with 2 additions and 0 deletions

View file

@ -356,6 +356,7 @@ void AssignmentClient::handleWebRTCSignalingPacket(QSharedPointer<ReceivedMessag
// Echo message back to sender.
if (!json.keys().contains("to") || !json.keys().contains("from")) {
qCDebug(assignment_client) << "Invalid WebRTC signaling echo message received.";
return;
}

View file

@ -901,6 +901,7 @@ void DomainServer::sendWebRTCSignalingMessageToAssignmentClient(const QJsonObjec
auto limitedNodeList = DependencyManager::get<LimitedNodeList>();
auto destinationNode = limitedNodeList->soloNodeOfType(destinationNodeType);
if (!destinationNode) {
qWarning() << NodeType::getNodeTypeName(destinationNodeType) << "not found for WebRTC signaling message.";
return;
}
// Use an NLPacketList because the signaling message is not necessarily small.