nullify cts properly, bump version

This commit is contained in:
rootdarkarchon
2023-01-15 19:55:43 +01:00
parent a09b5024f9
commit 206520f6f2
2 changed files with 4 additions and 1 deletions

View File

@@ -213,6 +213,8 @@ public class CachedPlayer
{ {
ApplyCustomizationData(kind, downloadToken); ApplyCustomizationData(kind, downloadToken);
} }
_downloadCancellationTokenSource = null;
}, downloadToken).ContinueWith(task => }, downloadToken).ContinueWith(task =>
{ {
if (!task.IsCanceled) return; if (!task.IsCanceled) return;
@@ -415,6 +417,7 @@ public class CachedPlayer
_ipcManager.PenumbraRemoveTemporaryCollection(PlayerName); _ipcManager.PenumbraRemoveTemporaryCollection(PlayerName);
_downloadCancellationTokenSource?.Cancel(); _downloadCancellationTokenSource?.Cancel();
_downloadCancellationTokenSource?.Dispose(); _downloadCancellationTokenSource?.Dispose();
_downloadCancellationTokenSource = null;
if (PlayerCharacter != IntPtr.Zero) if (PlayerCharacter != IntPtr.Zero)
{ {
foreach (var item in _cachedData.FileReplacements) foreach (var item in _cachedData.FileReplacements)

View File

@@ -3,7 +3,7 @@
<PropertyGroup> <PropertyGroup>
<Authors></Authors> <Authors></Authors>
<Company></Company> <Company></Company>
<Version>0.6.3</Version> <Version>0.6.4</Version>
<Description></Description> <Description></Description>
<Copyright></Copyright> <Copyright></Copyright>
<PackageProjectUrl>https://github.com/Penumbra-Sync/client</PackageProjectUrl> <PackageProjectUrl>https://github.com/Penumbra-Sync/client</PackageProjectUrl>