From 1f3fa7991f1fcd06f8efb2ddf1f02ebb9f7d9bc5 Mon Sep 17 00:00:00 2001 From: AntoineC Date: Wed, 1 Feb 2017 12:29:16 +0100 Subject: [PATCH] fix(lock): increase stale duration from 10s to 20s --- src/api/lock.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api/lock.ts b/src/api/lock.ts index b8a9196194..1be64bcbb0 100644 --- a/src/api/lock.ts +++ b/src/api/lock.ts @@ -10,7 +10,7 @@ async function lock(lockFilename: string, firstTime: boolean): Promise<{}> { const promise = new Promise((resolve, reject) => { lockfile.lock( lockFilename, - {realpath: false}, + {realpath: false, stale: 20 * 1000}, async (err: Error & {code: string}) => { if (err && err.code === 'ELOCKED') { if (firstTime) {