mirror of
https://github.com/overte-org/overte.git
synced 2025-08-11 07:25:43 +02:00
return the bytes sent in writeDatagram() and writeUnverifiedDatagram()
This commit is contained in:
parent
a64d3ffc32
commit
91d8e11393
1 changed files with 2 additions and 3 deletions
|
@ -227,7 +227,7 @@ qint64 LimitedNodeList::writeDatagram(const QByteArray& datagram, const SharedNo
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
writeDatagram(datagram, *destinationSockAddr, destinationNode->getConnectionSecret());
|
return writeDatagram(datagram, *destinationSockAddr, destinationNode->getConnectionSecret());
|
||||||
}
|
}
|
||||||
|
|
||||||
// didn't have a destinationNode to send to, return 0
|
// didn't have a destinationNode to send to, return 0
|
||||||
|
@ -249,9 +249,8 @@ qint64 LimitedNodeList::writeUnverifiedDatagram(const QByteArray& datagram, cons
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// don't use the node secret!
|
// don't use the node secret!
|
||||||
writeDatagram(datagram, *destinationSockAddr, QUuid());
|
return writeDatagram(datagram, *destinationSockAddr, QUuid());
|
||||||
}
|
}
|
||||||
|
|
||||||
// didn't have a destinationNode to send to, return 0
|
// didn't have a destinationNode to send to, return 0
|
||||||
|
|
Loading…
Reference in a new issue