mirror of
https://github.com/overte-org/overte.git
synced 2025-04-22 04:44:08 +02:00
Merge branch 'atp' of https://github.com/birarda/hifi into protocol
This commit is contained in:
commit
ebeeee62bf
1 changed files with 4 additions and 7 deletions
|
@ -269,15 +269,12 @@ void PacketReceiver::processDatagrams() {
|
|||
<< listener.first << "::" << qPrintable(listener.second.methodSignature());
|
||||
}
|
||||
|
||||
} else {
|
||||
// we have a dead listener - remove this mapping from the _packetListenerMap
|
||||
qDebug() << "Listener for packet type" << packet->getType() << "("
|
||||
<< qPrintable(nameForPacketType(packet->getType())) << ")"
|
||||
<< "has been destroyed - removing mapping.";
|
||||
_packetListenerMap.erase(it);
|
||||
}
|
||||
} else {
|
||||
qDebug() << "No listener found for packet type " << nameForPacketType(packet->getType());
|
||||
qWarning() << "No listener found for packet type " << nameForPacketType(packet->getType());
|
||||
|
||||
// insert a dummy listener so we don't print this again
|
||||
_packetListenerMap.insert(packet->getType(), { nullptr, QMetaMethod() });
|
||||
}
|
||||
|
||||
_packetListenerLock.unlock();
|
||||
|
|
Loading…
Reference in a new issue