Solves the issue of not connecting in the first time reconnect is called
This commit is contained in:
+1
-1
@@ -71,7 +71,7 @@ class RelayPool(
|
||||
|
||||
fun getRelay(url: NormalizedRelayUrl): IRelayClient? = relays.get(url)
|
||||
|
||||
var lastReconnectCall = TimeUtils.now()
|
||||
var lastReconnectCall = 0L
|
||||
|
||||
fun reconnectIfNeedsToORIfItIsTime() {
|
||||
if (lastReconnectCall < TimeUtils.oneMinuteAgo()) {
|
||||
|
||||
Reference in New Issue
Block a user