From 11b730506b7f006851c7ea9ec9515e209dc0b510 Mon Sep 17 00:00:00 2001 From: Ulf Bjorkengren Date: Fri, 15 Nov 2024 12:35:27 +0100 Subject: [PATCH] Feeder connect fix. Signed-off-by: Ulf Bjorkengren --- server/vissv2server/serviceMgr/serviceMgr.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/vissv2server/serviceMgr/serviceMgr.go b/server/vissv2server/serviceMgr/serviceMgr.go index b2be1341..3fd67521 100644 --- a/server/vissv2server/serviceMgr/serviceMgr.go +++ b/server/vissv2server/serviceMgr/serviceMgr.go @@ -1008,7 +1008,7 @@ func feederFrontend(toFeeder chan string, fromFeederRorC chan string, fromFeeder attempts := 0 for udsConn == nil && attempts < 10 { udsConn = utils.GetUdsConn("*", "serverFeeder") - if attempts >= 10 { + if udsConn == nil && attempts >= 10-1 { utils.Error.Printf("feederFrontend:Failed to UDS connect to feeder.") return // ??? }