mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-12 18:27:23 +01:00
Handle open handle error when first creating the old file
This commit is contained in:
parent
71e549d59d
commit
a62680cf5b
1 changed files with 1 additions and 1 deletions
|
|
@ -142,7 +142,7 @@ namespace Dalamud
|
|||
var oldFile = new FileInfo(oldPath);
|
||||
|
||||
if (!oldFile.Exists)
|
||||
oldFile.Create();
|
||||
oldFile.Create().Close();
|
||||
|
||||
using var reader = new BinaryReader(logFile.Open(FileMode.Open, FileAccess.Read));
|
||||
using var writer = new BinaryWriter(oldFile.Open(FileMode.Append, FileAccess.Write));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue