pull/1391/head
gedoor 4 years ago
parent 7b8b3a1753
commit 59ffcf0b28
  1. 1
      app/src/main/java/io/legado/app/help/http/cronet/CronetHelper.kt

@ -42,6 +42,7 @@ val cronetEngine: ExperimentalCronetEngine? by lazy {
//URL.setURLStreamHandlerFactory(CronetURLStreamHandlerFactory(engine)) //URL.setURLStreamHandlerFactory(CronetURLStreamHandlerFactory(engine))
return@lazy engine return@lazy engine
} catch (e: Exception) { } catch (e: Exception) {
Timber.e(e, "初始化cronetEngine出错")
return@lazy null return@lazy null
} }
} }

Loading…
Cancel
Save