Merge pull request #135 from Moonlight-Panel/FixUnarchiveCrash

Fixed decompress issue (hopefully)
This commit is contained in:
Marcel Baumgartner
2023-05-28 04:33:30 +02:00
committed by GitHub

View File

@@ -211,6 +211,8 @@ public class WingsFileAccess : FileAccess
}
public override async Task Decompress(FileData fileData)
{
try
{
var req = new DecompressFile()
{
@@ -220,6 +222,18 @@ public class WingsFileAccess : FileAccess
await WingsApiHelper.Post(Server.Node, $"api/servers/{Server.Uuid}/files/decompress", req);
}
catch (Exception e)
{
if (e.Message.ToLower().Contains("canceled"))
{
// ignore, maybe do smth better here, like showing a waiting thing or so
}
else
{
throw;
}
}
}
public override Task<string> GetLaunchUrl()
{