#98, sync to server now works as well + a lot of related changes

This commit is contained in:
azivner
2018-07-24 20:35:03 +02:00
parent 013714cb5c
commit 37ab7b4641
19 changed files with 153 additions and 65 deletions

View File

@@ -10,12 +10,11 @@ async function doExclusively(func) {
const releaseMutex = await instance.acquire();
try {
await func();
return await func();
}
finally {
releaseMutex();
}
}
module.exports = {