mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-07-06 14:22:55 +01:00
One async call leads to another, and another, all the way up the call stack...
This commit is contained in:
parent
64887fa743
commit
937d27ae9d
@@ -1,4 +1,5 @@
|
||||
using System.Collections.Generic;
|
||||
using System.Threading.Tasks;
|
||||
using MediaBrowser.Common.Net.Handlers;
|
||||
using MediaBrowser.Controller;
|
||||
using MediaBrowser.Model.Entities;
|
||||
@@ -7,9 +8,12 @@ namespace MediaBrowser.Api.HttpHandlers
|
||||
{
|
||||
class UsersHandler : BaseJsonHandler<IEnumerable<User>>
|
||||
{
|
||||
protected override IEnumerable<User> GetObjectToSerialize()
|
||||
protected override Task<IEnumerable<User>> GetObjectToSerialize()
|
||||
{
|
||||
return Kernel.Instance.Users;
|
||||
return Task.Run(() =>
|
||||
{
|
||||
return Kernel.Instance.Users;
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user