mirror of
https://github.com/overte-org/overte.git
synced 2025-04-14 04:07:11 +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
|
||||
|
@ -249,9 +249,8 @@ qint64 LimitedNodeList::writeUnverifiedDatagram(const QByteArray& datagram, cons
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
// 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
|
||||
|
|
Loading…
Reference in a new issue