decrease delay after failed connection
This commit is contained in:
parent
dcd2c03d45
commit
d02c0ddd82
|
@ -178,7 +178,7 @@ proc initServerConnection(serverHostname: string, serverPort: Port,
|
||||||
if failCount == 3:
|
if failCount == 3:
|
||||||
raise e
|
raise e
|
||||||
failCount.inc
|
failCount.inc
|
||||||
await sleepAsync(1000)
|
await sleepAsync(100)
|
||||||
continue
|
continue
|
||||||
await sock.connect(serverHostname, serverPort)
|
await sock.connect(serverHostname, serverPort)
|
||||||
let id = rand(uint32)
|
let id = rand(uint32)
|
||||||
|
|
Loading…
Reference in New Issue