Added some more checks for E2T create handling and RMR update to v4.8.0
[ric-plt/rtmgr.git] / pkg / nbi / control.go
index 98d7821..bd1bf4b 100644 (file)
@@ -244,9 +244,11 @@ func Serve() {
        go updateEp()
        time.Sleep(5 * time.Second)
        sendRoutesToAll()
-       /* Sometimes first message  fails, retry after 5 sec */
-       time.Sleep(5 * time.Second)
-       sendRoutesToAll()
+       for i := 0; i <= 5; i++ {
+               /* Sometimes first message  fails, retry after 5 sec */
+               time.Sleep(10 * time.Second)
+               sendRoutesToAll()
+       }
 
        for {
                xapp.Logger.Debug("Periodic Routes value = %s", xapp.Config.GetString("periodicroutes"))