mirror of
				https://github.com/mihonapp/mihon.git
				synced 2025-10-31 22:37:56 +01:00 
			
		
		
		
	Avoid some crashes
This commit is contained in:
		| @@ -52,7 +52,7 @@ class CategoryRepositoryImpl( | ||||
|     } | ||||
|  | ||||
|     override suspend fun updatePartial(updates: List<CategoryUpdate>) { | ||||
|         handler.await(true) { | ||||
|         handler.await(inTransaction = true) { | ||||
|             for (update in updates) { | ||||
|                 updatePartialBlocking(update) | ||||
|             } | ||||
|   | ||||
| @@ -74,7 +74,7 @@ class MangaRepositoryImpl( | ||||
|     } | ||||
|  | ||||
|     override suspend fun insert(manga: Manga): Long? { | ||||
|         return handler.awaitOneOrNull { | ||||
|         return handler.awaitOneOrNull(inTransaction = true) { | ||||
|             mangasQueries.insert( | ||||
|                 source = manga.source, | ||||
|                 url = manga.url, | ||||
|   | ||||
		Reference in New Issue
	
	Block a user