mirror of
https://github.com/overte-org/overte.git
synced 2025-04-21 20:44:14 +02:00
Bug fixes
This commit is contained in:
parent
ebeeee62bf
commit
85391cefbb
2 changed files with 2 additions and 2 deletions
|
@ -496,7 +496,7 @@ unsigned int LimitedNodeList::broadcastToNodes(std::unique_ptr<NLPacket> packet,
|
|||
unsigned int n = 0;
|
||||
|
||||
eachNode([&](const SharedNodePointer& node){
|
||||
if (destinationNodeTypes.contains(node->getType())) {
|
||||
if (!node->getActiveSocket()->isNull() && destinationNodeTypes.contains(node->getType())) {
|
||||
writePacket(*packet, *node->getActiveSocket(), node->getConnectionSecret());
|
||||
++n;
|
||||
}
|
||||
|
|
|
@ -147,7 +147,7 @@ void Packet::setPayloadSize(qint64 payloadSize) {
|
|||
|
||||
bool Packet::reset() {
|
||||
if (isWritable()) {
|
||||
setPayloadSize(0);
|
||||
_payloadSize = 0;
|
||||
}
|
||||
|
||||
return QIODevice::reset();
|
||||
|
|
Loading…
Reference in a new issue