- r.mutex.Lock()
- //
- // If last endpoint, release and free seqid
- //
- if epamount == 0 {
- if _, ok := r.register[seqId]; ok {
- xapp.Logger.Debug("RELEASE %s", subs.String())
- delete(r.register, seqId)
- xapp.Logger.Debug("Registry: substable=%v", r.register)
+ if _, ok := r.register[seqId]; ok {
+ xapp.Logger.Debug("RELEASE %s", subs.String())
+ delete(r.register, seqId)
+ xapp.Logger.Debug("Registry: substable=%v", r.register)
+ }
+ r.subIds = append(r.subIds, seqId)
+
+ } else if subs.EpList.Size() > 0 {
+ //
+ // Subscription route updates
+ //
+ subRouteAction := SubRouteInfo{subs.EpList, uint16(seqId)}
+ r.rtmgrClient.SubscriptionRequestUpdate(subRouteAction)