Update ContextAccess.cpp

This commit is contained in:
huzhichengdd 2022-01-14 09:46:51 +08:00 committed by GitHub
parent 33348454e2
commit 4a02d96af4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -157,7 +157,7 @@ void ContextAccess::initialize()
*params.user_id, [weak_ptr = weak_from_this()](const UUID &, const AccessEntityPtr & entity)
{
auto ptr = weak_ptr.lock();
if(!ptr)
if (!ptr)
return;
UserPtr changed_user = entity ? typeid_cast<UserPtr>(entity) : nullptr;
std::lock_guard lock2{ptr->mutex};