From fcc0499ca6846f42820e952663fc1b4067e11634 Mon Sep 17 00:00:00 2001 From: JP Dillingham Date: Wed, 26 Mar 2025 14:59:08 -0500 Subject: fix directory contents resolver --- src/slskd/Application.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/slskd/Application.cs b/src/slskd/Application.cs index 791cf245..e5681442 100644 --- a/src/slskd/Application.cs +++ b/src/slskd/Application.cs @@ -1258,18 +1258,18 @@ namespace slskd /// The unique token for the request, supplied by the requesting user. /// The requested directory. /// A Task resolving an instance of Soulseek.Directory containing the contents of the requested directory. - private async Task DirectoryContentsResponseResolver(string username, IPEndPoint endpoint, int token, string directory) + private async Task> DirectoryContentsResponseResolver(string username, IPEndPoint endpoint, int token, string directory) { if (Users.IsBlacklisted(username, endpoint.Address)) { Log.Information("Returned empty directory listing for blacklisted user {Username} ({IP})", username, endpoint.Address); - return new Soulseek.Directory(directory); + return [new Soulseek.Directory(directory)]; } try { var dir = await Shares.ListDirectoryAsync(directory); - return dir; + return [dir]; } catch (Exception ex) { -- cgit v1.2.3