Change-Id: I859babab7278137a4a2e49e5a085c65632888dd0
pull/1190/head
Tomáš Mlynarič 10 months ago
parent d1211f15e7
commit f3e89bad4a

@ -54,7 +54,10 @@ class ImageLoaderAsyncFactory @Inject constructor(
*/
override fun newImageLoader() =
trace("NiaImageLoader.runBlocking") {
if (asyncNewImageLoader.isCompleted) asyncNewImageLoader.getCompleted()
else runBlocking { asyncNewImageLoader.await() }
if (asyncNewImageLoader.isCompleted) {
asyncNewImageLoader.getCompleted()
} else {
runBlocking { asyncNewImageLoader.await() }
}
}
}

Loading…
Cancel
Save