mirror of
https://github.com/overte-org/overte.git
synced 2025-08-08 04:57:23 +02:00
Fix QMutexLocker in PacketReceiver
This commit is contained in:
parent
c6a8ccd490
commit
10cd315a10
1 changed files with 1 additions and 1 deletions
|
@ -95,7 +95,7 @@ bool PacketReceiver::registerMessageListener(PacketType type, QObject* listener,
|
||||||
QMetaMethod matchingMethod = matchingMethodForListener(type, listener, slot);
|
QMetaMethod matchingMethod = matchingMethodForListener(type, listener, slot);
|
||||||
|
|
||||||
if (matchingMethod.isValid()) {
|
if (matchingMethod.isValid()) {
|
||||||
QMutexLocker(&_packetListenerLock);
|
QMutexLocker locker(&_packetListenerLock);
|
||||||
|
|
||||||
if (_packetListListenerMap.contains(type)) {
|
if (_packetListListenerMap.contains(type)) {
|
||||||
qCDebug(networking) << "Warning: Registering a packet listener for packet type" << type
|
qCDebug(networking) << "Warning: Registering a packet listener for packet type" << type
|
||||||
|
|
Loading…
Reference in a new issue