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:
|
||||
raise e
|
||||
failCount.inc
|
||||
await sleepAsync(1000)
|
||||
await sleepAsync(100)
|
||||
continue
|
||||
await sock.connect(serverHostname, serverPort)
|
||||
let id = rand(uint32)
|
||||
|
|
Loading…
Reference in New Issue