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

This commit is contained in:
AntoineC
2017-02-01 12:29:16 +01:00
committed by zkochan
parent b5fbbbf6d7
commit 1f3fa7991f

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) {