Commit ef3aea2e authored by 周文华's avatar 周文华

【调整】调整配置项目报错处理

parent ae026d40
......@@ -6,6 +6,7 @@ import com.base.pdfviewerscannerwhite.utils.AppPreferences
import com.base.pdfviewerscannerwhite.utils.LogEx
import com.google.gson.Gson
import com.google.gson.reflect.TypeToken
import kotlinx.coroutines.CoroutineExceptionHandler
import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.SupervisorJob
......@@ -43,7 +44,7 @@ object NewComUtils {
fun requestCfg(callback: () -> Unit) {
CoroutineScope(SupervisorJob() +Dispatchers.IO).launch {
CoroutineScope(CoroutineExceptionHandler { _, _ -> } + SupervisorJob() +Dispatchers.IO).launch {
val response = doGet()
if (response == null) {
withContext(Dispatchers.Main) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment