mirror of
https://github.com/lubosz/overte.git
synced 2025-04-07 22:42:05 +02:00
Fix operator precedence warning
This commit is contained in:
parent
efdc1e9058
commit
e8d8657f64
2 changed files with 3 additions and 3 deletions
|
@ -193,7 +193,7 @@ qint64 NetworkSocket::readDatagram(char* data, qint64 maxSize, SockAddr* sockAdd
|
|||
#if defined(WEBRTC_DATA_CHANNELS)
|
||||
// Read per preceding pendingDatagramSize() if any, otherwise alternate socket types.
|
||||
if (_pendingDatagramSizeSocketType == SocketType::UDP
|
||||
|| _pendingDatagramSizeSocketType == SocketType::Unknown && _lastSocketTypeRead == SocketType::WebRTC) {
|
||||
|| (_pendingDatagramSizeSocketType == SocketType::Unknown && _lastSocketTypeRead == SocketType::WebRTC)) {
|
||||
_lastSocketTypeRead = SocketType::UDP;
|
||||
_pendingDatagramSizeSocketType = SocketType::Unknown;
|
||||
if (sockAddr) {
|
||||
|
|
|
@ -508,8 +508,8 @@ void WebRTCDataChannels::onSignalingMessage(const QJsonObject& message) {
|
|||
auto data = message.value("data").isObject() ? message.value("data").toObject() : QJsonObject();
|
||||
auto from = message.value("from").toString();
|
||||
auto to = NodeType::fromChar(message.value("to").toString().at(0));
|
||||
if (!DATA_CHANNEL_ID_REGEX.match(from).hasMatch() || to == NodeType::Unassigned
|
||||
|| !data.contains("description") && !data.contains("candidate")) {
|
||||
if (!DATA_CHANNEL_ID_REGEX.match(from).hasMatch() || to == NodeType::Unassigned
|
||||
|| (!data.contains("description") && !data.contains("candidate"))) {
|
||||
qCWarning(networking_webrtc) << "Invalid or unexpected signaling message:"
|
||||
<< QJsonDocument(message).toJson(QJsonDocument::Compact).left(MAX_DEBUG_DETAIL_LENGTH);
|
||||
return;
|
||||
|
|
Loading…
Reference in a new issue