Fixed not able to load from hiyobi

This commit is contained in:
Pupil
2020-02-17 16:46:51 +09:00
parent 98d1f88579
commit 1dbfc64f37
2 changed files with 7 additions and 4 deletions

View File

@@ -155,9 +155,11 @@ class Cache(context: Context) : ContextWrapper(context) {
var retval: Reader? = null
for (source in sources) {
retval = kotlin.runCatching {
retval = try {
source.value.invoke()
}.getOrNull()
} catch (e: Exception) {
null
}
if (retval != null)
break