Merge pull request #526 from openziti/fix.dupe.router.start.offlining.orig

ignores dupe router startup
This commit is contained in:
Andrew
2021-02-11 08:30:50 -05:00
committed by GitHub
+2 -1
View File
@@ -794,7 +794,8 @@ func (b *Broker) ReceiveHello(r *network.Router, edgeRouter *model.EdgeRouter, r
func (b *Broker) RouterDisconnected(r *network.Router) {
go func() {
if r.Fingerprint != nil {
//ensure this wasn't the same router being started multiple times and the 2nd connection being refused w/ a close
if r.Fingerprint != nil && !b.ae.HostController.GetNetwork().ConnectedRouter(r.Id) {
if edgeRouter, _ := b.ae.Handlers.EdgeRouter.ReadOneByFingerprint(*r.Fingerprint); edgeRouter != nil {
b.edgeRouterMap.RemoveEntry(edgeRouter.Id)
}