pull/743/head
gedoor 4 years ago
parent 543f0aec87
commit 0ee9781f3d
  1. 3
      app/src/main/java/io/legado/app/help/http/HttpHelper.kt

@ -1,6 +1,5 @@
package io.legado.app.help.http
import io.legado.app.utils.msg
import kotlinx.coroutines.suspendCancellableCoroutine
import okhttp3.*
import java.net.InetSocketAddress
@ -111,7 +110,7 @@ object HttpHelper {
override fun onError(error: Throwable) {
if (!block.isCompleted)
block.resume(StrResponse(params.url, error.msg))
block.cancel(error)
}
}
webView.load(params)

Loading…
Cancel
Save