diff --git a/Torch/Patches/TorchAsyncSaving.cs b/Torch/Patches/TorchAsyncSaving.cs index a26173f..c20c59d 100644 --- a/Torch/Patches/TorchAsyncSaving.cs +++ b/Torch/Patches/TorchAsyncSaving.cs @@ -20,9 +20,9 @@ using VRage.Utils; namespace Torch.Patches { /// - /// A copy of except with decent async support. + /// A copy of except with C# async support. /// - public class TorchAsyncSaving + public static class TorchAsyncSaving { /// /// Saves the game asynchronously @@ -34,6 +34,8 @@ namespace Torch.Patches public static Task Save(ITorchBase torch, int timeoutMs = -1, string newSaveName = null) { Task task = SaveInternal(torch, newSaveName); + if (timeoutMs == -1) + return task; return Task.Run(() => { // ReSharper disable once ConvertIfStatementToReturnStatement