fix(lock): increase stale duration from 10s to 20s

This commit is contained in:
AntoineC authored and zkochan committed 2017-02-01 22:03:46 +02:00
1 parent b5fbbbf6d7
commit 1f3fa7991f
1 file changed
+1 -1
+1 -1
View File
@@ -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) {