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
...@@ -195,13 +195,6 @@ func newclientIDTracker(comms channelLeaseComms, host *connect.Host, username st ...@@ -195,13 +195,6 @@ func newclientIDTracker(comms channelLeaseComms, host *connect.Host, username st
jww.FATAL.Panic(err) jww.FATAL.Panic(err)
} }
if !reg.IsRegistered() {
err = c.register()
if err != nil {
jww.FATAL.Panic(err)
}
}
c := &clientIDTracker{ c := &clientIDTracker{
kv: kv, kv: kv,
rngSource: rngSource, rngSource: rngSource,
...@@ -212,6 +205,14 @@ func newclientIDTracker(comms channelLeaseComms, host *connect.Host, username st ...@@ -212,6 +205,14 @@ func newclientIDTracker(comms channelLeaseComms, host *connect.Host, username st
host: host, host: host,
udPubKey: udPubKey, udPubKey: udPubKey,
} }
if !reg.IsRegistered() {
err = c.register()
if err != nil {
jww.FATAL.Panic(err)
}
}
return c return c
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment