update user deletion

This commit is contained in:
Luke Pulverenti 2017-09-12 02:27:39 -04:00
parent 2f99a78230
commit 381ea159de
4 changed files with 6 additions and 5 deletions

View File

@ -1032,7 +1032,7 @@ namespace Emby.Server.Implementations
((UserManager)UserManager).Initialize();
}
protected virtual string PackageRuntime
public virtual string PackageRuntime
{
get
{

View File

@ -84,8 +84,8 @@ namespace Emby.Server.Implementations.HttpServer.SocketSharp
private void ProcessContext(HttpListenerContext context)
{
InitTask(context, _disposeCancellationToken);
//Task.Run(() => InitTask(context, _disposeCancellationToken));
//InitTask(context, _disposeCancellationToken);
Task.Run(() => InitTask(context, _disposeCancellationToken));
}
private Task InitTask(HttpListenerContext context, CancellationToken cancellationToken)

View File

@ -666,8 +666,7 @@ namespace Emby.Server.Implementations.Library
DeleteUserPolicy(user);
// Force this to be lazy loaded again
Users = LoadUsers();
Users = allUsers.Where(i => i.Id != user.Id).ToList();
OnUserDeleted(user);
}

View File

@ -84,5 +84,7 @@ namespace MediaBrowser.Controller
void LaunchUrl(string url);
void EnableLoopback(string appName);
string PackageRuntime { get; }
}
}