mirror of
				https://github.com/zadam/trilium.git
				synced 2025-11-03 20:06:08 +01:00 
			
		
		
		
	#98, sync to server now works as well + a lot of related changes
This commit is contained in:
		@@ -10,12 +10,11 @@ async function doExclusively(func) {
 | 
			
		||||
    const releaseMutex = await instance.acquire();
 | 
			
		||||
 | 
			
		||||
    try {
 | 
			
		||||
        await func();
 | 
			
		||||
        return await func();
 | 
			
		||||
    }
 | 
			
		||||
    finally {
 | 
			
		||||
        releaseMutex();
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
module.exports = {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user