Solves the issue of not connecting in the first time reconnect is called

This commit is contained in:
Vitor Pamplona
2025-10-02 16:40:16 -04:00
parent 1fd5ba0451
commit a56d9631ed

View File

@@ -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()) {