diff --git a/aspnet-core/modules/identity/LINGYUN.Abp.Identity.Domain/LINGYUN/Abp/Identity/Session/IdentitySessionUserInactiveSynchronizer.cs b/aspnet-core/modules/identity/LINGYUN.Abp.Identity.Domain/LINGYUN/Abp/Identity/Session/IdentitySessionUserInactiveSynchronizer.cs index 34b69c093..f59151284 100644 --- a/aspnet-core/modules/identity/LINGYUN.Abp.Identity.Domain/LINGYUN/Abp/Identity/Session/IdentitySessionUserInactiveSynchronizer.cs +++ b/aspnet-core/modules/identity/LINGYUN.Abp.Identity.Domain/LINGYUN/Abp/Identity/Session/IdentitySessionUserInactiveSynchronizer.cs @@ -28,8 +28,6 @@ public class IdentitySessionUserInactiveSynchronizer : await using var lockHandle = await _distributedLock.TryAcquireAsync( $"{nameof(IdentitySessionUserInactiveSynchronizer)}_{nameof(IdentitySessionEto)}"); if (lockHandle != null) - var userInactive = await _identityUserInactiveRepository.FindByUserIdAsync(eventData.Entity.UserId); - if (userInactive != null) { var userInactive = await _identityUserInactiveRepository.FindByUserIdAsync(eventData.Entity.UserId); if (userInactive != null)