mirror of
https://github.com/overte-org/overte.git
synced 2025-04-21 08:04:01 +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);
|
||||
|
||||
if (matchingMethod.isValid()) {
|
||||
QMutexLocker(&_packetListenerLock);
|
||||
QMutexLocker locker(&_packetListenerLock);
|
||||
|
||||
if (_packetListListenerMap.contains(type)) {
|
||||
qCDebug(networking) << "Warning: Registering a packet listener for packet type" << type
|
||||
|
|
Loading…
Reference in a new issue