diff options
| author | Vasily <JustAMan@users.noreply.github.com> | 2020-04-01 23:56:00 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-04-01 23:56:00 +0300 |
| commit | cc40f84f3c138e439318e400eeb53cbb74eb8a84 (patch) | |
| tree | b07d4daa00a930e744008d0955e35a9102e85052 /Emby.Server.Implementations/Library/UserManager.cs | |
| parent | 07ea120ba961c20717dba625edb462d09e5ebec3 (diff) | |
| parent | f31efce52db9dbd726cce55ea099c0c5165da566 (diff) | |
Merge pull request #2660 from Bond-009/usings
Minor style fixes
Diffstat (limited to 'Emby.Server.Implementations/Library/UserManager.cs')
| -rw-r--r-- | Emby.Server.Implementations/Library/UserManager.cs | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/Emby.Server.Implementations/Library/UserManager.cs b/Emby.Server.Implementations/Library/UserManager.cs index 25d733a65..7b17cc913 100644 --- a/Emby.Server.Implementations/Library/UserManager.cs +++ b/Emby.Server.Implementations/Library/UserManager.cs @@ -805,17 +805,17 @@ namespace Emby.Server.Implementations.Library // Delete user config dir lock (_configSyncLock) - lock (_policySyncLock) - { - try - { - Directory.Delete(user.ConfigurationDirectoryPath, true); - } - catch (IOException ex) + lock (_policySyncLock) { - _logger.LogError(ex, "Error deleting user config dir: {Path}", user.ConfigurationDirectoryPath); + try + { + Directory.Delete(user.ConfigurationDirectoryPath, true); + } + catch (IOException ex) + { + _logger.LogError(ex, "Error deleting user config dir: {Path}", user.ConfigurationDirectoryPath); + } } - } _users.TryRemove(user.Id, out _); |
