fix update subscription error

Prevent server list from being emptied when update subscription failed or the subscription url is invalid
This commit is contained in:
jiuqianyuan
2021-07-16 17:49:56 +08:00
committed by GitHub
parent 242c96a4de
commit 3932ee6e9b
@@ -417,6 +417,7 @@ class MainActivity : BaseActivity(), NavigationView.OnNavigationItemSelectedList
URL(url).readText()
} catch (e: Exception) {
e.printStackTrace()
return@launch
""
}
launch(Dispatchers.Main) {