Fixed decompress issue (hopefully)
This commit is contained in:
@@ -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()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user