mirror of
https://github.com/hydralauncher/hydra.git
synced 2025-02-13 03:32:13 +00:00
fix: file not being processed if it was created after watcher started
This commit is contained in:
parent
57118ec5b9
commit
1ea64d7243
1 changed files with 8 additions and 1 deletions
|
@ -79,7 +79,14 @@ const compareFile = async (game: Game, file: AchievementFile) => {
|
|||
const previousStat = fileStats.get(file.filePath);
|
||||
fileStats.set(file.filePath, currentStat.mtimeMs);
|
||||
|
||||
if (!previousStat || previousStat === currentStat.mtimeMs) {
|
||||
if (!previousStat) {
|
||||
if (currentStat.mtimeMs) {
|
||||
await processAchievementFileDiff(game, file);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
if (previousStat === currentStat.mtimeMs) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue