mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-31 10:26:08 +01:00 
			
		
		
		
	fix deadlock after "cut to note", closes #1030
This commit is contained in:
		| @@ -82,6 +82,10 @@ export default class Component { | ||||
|         let release; | ||||
|  | ||||
|         try { | ||||
|             if (this.mutex.isLocked()) { | ||||
|                 console.debug("Mutex locked for", this.constructor.name); | ||||
|             } | ||||
|  | ||||
|             release = await this.mutex.acquire(); | ||||
|  | ||||
|             await fun.call(this, data); | ||||
| @@ -93,4 +97,4 @@ export default class Component { | ||||
|             } | ||||
|         } | ||||
|     } | ||||
| } | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user