mirror of
https://github.com/overte-org/overte.git
synced 2025-08-05 21:10:12 +02:00
Update PacketReceiver to use QSharedPointer<NLPacket>
This commit is contained in:
parent
ec0fc81b86
commit
d009bf826e
1 changed files with 2 additions and 2 deletions
|
@ -66,9 +66,9 @@ void PacketReceiver::processDatagrams() {
|
|||
if (_packetListenerMap.contains(incomingType)) {
|
||||
auto& listener = _packetListenerMap[incomingType];
|
||||
//TODO Update packet
|
||||
std::unique_ptr<NLPacket> packet;
|
||||
QSharedPointer<NLPacket> packet;
|
||||
bool success = QMetaObject::invokeMethod(listener.first, listener.second,
|
||||
Q_ARG(NLPacket&, *packet),
|
||||
Q_ARG(QSharedPointer<NLPacket>, packet),
|
||||
Q_ARG(HifiSockAddr, senderSockAddr));
|
||||
if (!success) {
|
||||
qDebug() << "Error sending packet " << incomingType << " to listener: " << listener.first->objectName() << "::" << listener.second;
|
||||
|
|
Loading…
Reference in a new issue