fix status on call failed
This commit is contained in:
1 parent
28a87adc70
commit
21b733a5f6
1 file changed
+6
@@ -370,6 +370,12 @@ class MainActivity :
|
||||
ProxyService.instance?.updateStatus(status)
|
||||
lastStatus = status
|
||||
runOnUiThread {
|
||||
if (status == VpnStatus.CALL_FAILED) {
|
||||
fullReset()
|
||||
lastStatus = VpnStatus.CALL_FAILED
|
||||
mainFragment()?.onStatusChanged(VpnStatus.CALL_FAILED)
|
||||
return@runOnUiThread
|
||||
}
|
||||
mainFragment()?.onStatusChanged(status)
|
||||
if (status == VpnStatus.TUNNEL_ACTIVE) {
|
||||
connected = true
|
||||
|
||||
Reference in new issue
Block a user