mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2025-11-10 22:26:56 +01:00
Solves the issue of not connecting in the first time reconnect is called
This commit is contained in:
@@ -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