Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/file-lock.ts
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@ export function acquireFileLock(lockPath: string, options?: FileLockOptions): vo
try {
const stat = fs.statSync(lockPath);
const fileAge = Date.now() - stat.mtimeMs;
const graceMs = Math.max(currentDelay * 2, 500);
const graceMs = 1000;
if (fileAge > graceMs) {
debugLog(`Stale lock detected: corrupted lock file (age ${Math.round(fileAge)}ms > grace ${graceMs}ms), removing ${lockPath}`);
try {
Expand Down
Loading