Skip to content

Commit 1481bb5

Browse files
committed
Fix for potential semaphore deadlock in DAT import.
1 parent 56d450b commit 1481bb5

File tree

1 file changed

+2
-0
lines changed
  • xivModdingFramework/SqPack/FileTypes

1 file changed

+2
-0
lines changed

xivModdingFramework/SqPack/FileTypes/Dat.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1493,7 +1493,9 @@ where entry.fullPath.Equals(modEntry.fullPath)
14931493

14941494
if (fileLength >= 2000000000)
14951495
{
1496+
_lock.Release();
14961497
datNum = CreateNewDat(dataFile);
1498+
await _lock.WaitAsync();
14971499

14981500
modDatPath = Path.Combine(_gameDirectory.FullName, $"{dataFile.GetDataFileName()}{DatExtension}{datNum}");
14991501
}

0 commit comments

Comments
 (0)