update user deletion
This commit is contained in:
parent
2f99a78230
commit
381ea159de
|
@ -1032,7 +1032,7 @@ namespace Emby.Server.Implementations
|
||||||
((UserManager)UserManager).Initialize();
|
((UserManager)UserManager).Initialize();
|
||||||
}
|
}
|
||||||
|
|
||||||
protected virtual string PackageRuntime
|
public virtual string PackageRuntime
|
||||||
{
|
{
|
||||||
get
|
get
|
||||||
{
|
{
|
||||||
|
|
|
@ -84,8 +84,8 @@ namespace Emby.Server.Implementations.HttpServer.SocketSharp
|
||||||
|
|
||||||
private void ProcessContext(HttpListenerContext context)
|
private void ProcessContext(HttpListenerContext context)
|
||||||
{
|
{
|
||||||
InitTask(context, _disposeCancellationToken);
|
//InitTask(context, _disposeCancellationToken);
|
||||||
//Task.Run(() => InitTask(context, _disposeCancellationToken));
|
Task.Run(() => InitTask(context, _disposeCancellationToken));
|
||||||
}
|
}
|
||||||
|
|
||||||
private Task InitTask(HttpListenerContext context, CancellationToken cancellationToken)
|
private Task InitTask(HttpListenerContext context, CancellationToken cancellationToken)
|
||||||
|
|
|
@ -666,8 +666,7 @@ namespace Emby.Server.Implementations.Library
|
||||||
|
|
||||||
DeleteUserPolicy(user);
|
DeleteUserPolicy(user);
|
||||||
|
|
||||||
// Force this to be lazy loaded again
|
Users = allUsers.Where(i => i.Id != user.Id).ToList();
|
||||||
Users = LoadUsers();
|
|
||||||
|
|
||||||
OnUserDeleted(user);
|
OnUserDeleted(user);
|
||||||
}
|
}
|
||||||
|
|
|
@ -84,5 +84,7 @@ namespace MediaBrowser.Controller
|
||||||
void LaunchUrl(string url);
|
void LaunchUrl(string url);
|
||||||
|
|
||||||
void EnableLoopback(string appName);
|
void EnableLoopback(string appName);
|
||||||
|
|
||||||
|
string PackageRuntime { get; }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user