From 8c8e8f04303e6180709b31c21c3df83dc4eebdbd Mon Sep 17 00:00:00 2001 From: goat Date: Wed, 17 Jul 2024 20:47:31 +0200 Subject: [PATCH] force-flush file streams in patcher store --- .../Patching/ZiPatch/Util/SqexFileStreamStore.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/XIVLauncher.Common/Patching/ZiPatch/Util/SqexFileStreamStore.cs b/src/XIVLauncher.Common/Patching/ZiPatch/Util/SqexFileStreamStore.cs index 9cdfa1fe..16286bfe 100644 --- a/src/XIVLauncher.Common/Patching/ZiPatch/Util/SqexFileStreamStore.cs +++ b/src/XIVLauncher.Common/Patching/ZiPatch/Util/SqexFileStreamStore.cs @@ -38,7 +38,11 @@ public void CloseStream(string path) public void Dispose() { foreach (var stream in _streams.Values) + { + stream.Flush(true); stream.Dispose(); + } + this._streams.Clear(); } }