We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 386b0dd commit aae3dfeCopy full SHA for aae3dfe
src/Files.App/ViewModels/ItemViewModel.cs
@@ -1442,15 +1442,15 @@ public async Task EnumerateItemsFromSpecialFolderAsync(string path)
1442
client.Port = FtpHelpers.GetFtpPort(path);
1443
client.Credentials = FtpManager.Credentials.Get(client.Host, FtpManager.Anonymous);
1444
1445
- static Task<FtpProfile?> WrappedAutoConnectFtpAsync(AsyncFtpClient client)
+ static async Task<FtpProfile?> WrappedAutoConnectFtpAsync(AsyncFtpClient client)
1446
{
1447
try
1448
1449
- return client.AutoConnect();
+ return await client.AutoConnect();
1450
}
1451
catch (FtpAuthenticationException)
1452
1453
- return Task.FromResult<FtpProfile?>(null);
+ return null;
1454
1455
1456
throw new InvalidOperationException();
0 commit comments