mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-16 22:30:42 +02:00
read lock, not write
This commit is contained in:
parent
3f4faec15f
commit
a6e353d75f
1 changed files with 1 additions and 1 deletions
|
@ -136,7 +136,7 @@ void AvatarHashMap::processAvatarIdentityPacket(QSharedPointer<ReceivedMessage>
|
|||
static auto EMPTY = QUuid();
|
||||
|
||||
{
|
||||
QWriteLocker locker(&_hashLock);
|
||||
QReadLocker locker(&_hashLock);
|
||||
auto me = _avatarHash.find(EMPTY);
|
||||
if ((me != _avatarHash.end()) && (identity.uuid == me.value()->getSessionUUID())) {
|
||||
// We add MyAvatar to _avatarHash with an empty UUID. Code relies on this. In order to correctly handle an
|
||||
|
|
Loading…
Reference in a new issue