[2.15.0] reject the socket reconnect when loc change
This commit is contained in:
@@ -55,7 +55,7 @@ class HttpDnsStartUp : AndroidStartup<Boolean>() {
|
||||
private var gotToken = false
|
||||
|
||||
private var httpDnsSimpleLocation by Delegates.observable(getDefaultSimpleLocation()) { _, oldValue, newValue ->
|
||||
if (oldValue.cityCode != newValue.cityCode) {
|
||||
if (gotToken && oldValue.cityCode != newValue.cityCode) {
|
||||
reConnectSocket(oldValue.cityCode, newValue.cityCode)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user