Fix QMutexLocker in PacketReceiver

This commit is contained in:
Ryan Huffman 2015-08-19 08:58:53 -07:00
parent c6a8ccd490
commit 10cd315a10

View file

@ -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