mirror of
https://github.com/overte-org/overte.git
synced 2025-08-08 07:17:43 +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();
|
static auto EMPTY = QUuid();
|
||||||
|
|
||||||
{
|
{
|
||||||
QWriteLocker locker(&_hashLock);
|
QReadLocker locker(&_hashLock);
|
||||||
auto me = _avatarHash.find(EMPTY);
|
auto me = _avatarHash.find(EMPTY);
|
||||||
if ((me != _avatarHash.end()) && (identity.uuid == me.value()->getSessionUUID())) {
|
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
|
// 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