Skip to content
Snippets Groups Projects
Commit 0322142f authored by David Stainton's avatar David Stainton
Browse files

Fix clientIDTracker constructor

parent 1d29bc16
No related branches found
No related tags found
5 merge requests!510Release,!419rewrote the health tracker to both consider if there are waiting rounds and...,!371[Channel RSAtoPrivate] Implement Reverse Asymmetric in Client/Broadcast,!354Channels impl,!340Project/channels
This commit is part of merge request !354. Comments created here will be created in the context of that merge request.
......@@ -195,13 +195,6 @@ func newclientIDTracker(comms channelLeaseComms, host *connect.Host, username st
jww.FATAL.Panic(err)
}
if !reg.IsRegistered() {
err = c.register()
if err != nil {
jww.FATAL.Panic(err)
}
}
c := &clientIDTracker{
kv: kv,
rngSource: rngSource,
......@@ -212,6 +205,14 @@ func newclientIDTracker(comms channelLeaseComms, host *connect.Host, username st
host: host,
udPubKey: udPubKey,
}
if !reg.IsRegistered() {
err = c.register()
if err != nil {
jww.FATAL.Panic(err)
}
}
return c
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment