Reconnect after 60 seconds instead of 10 seconds.
This commit is contained in:
@@ -175,8 +175,8 @@ class Relay(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
// waits 10 seconds to reconnect after disconnected.
|
// waits 60 seconds to reconnect after disconnected.
|
||||||
if (Date().time / 1000 > closingTime + 10) {
|
if (Date().time / 1000 > closingTime + 60) {
|
||||||
// sends all filters after connection is successful.
|
// sends all filters after connection is successful.
|
||||||
requestAndWatch()
|
requestAndWatch()
|
||||||
}
|
}
|
||||||
@@ -186,8 +186,11 @@ class Relay(
|
|||||||
|
|
||||||
fun sendFilterOnlyIfDisconnected() {
|
fun sendFilterOnlyIfDisconnected() {
|
||||||
if (socket == null) {
|
if (socket == null) {
|
||||||
//println("sendfilter Only if Disconnected ${url} ")
|
// waits 60 seconds to reconnect after disconnected.
|
||||||
requestAndWatch()
|
if (Date().time / 1000 > closingTime + 60) {
|
||||||
|
//println("sendfilter Only if Disconnected ${url} ")
|
||||||
|
requestAndWatch()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user