Commit 2b97b2b4 authored by Kevin Di Lallo's avatar Kevin Di Lallo
Browse files

meep-ams minor fix

parent ea045ebc
Loading
Loading
Loading
Loading
+14 −8
Original line number Original line Diff line number Diff line
@@ -747,8 +747,11 @@ func checkAdjAppInfoNotificationRegisteredSubscriptions(appNames []string) {
							}
							}
						}
						}
					}
					}

					go func() {
						sendAdjNotification(sub.CallbackReference, notif)
						sendAdjNotification(sub.CallbackReference, notif)
						log.Info("Adjacent Notification" + "(" + subsIdStr + ")")
						log.Info("Adjacent Notification" + "(" + subsIdStr + ")")
					}()
				}
				}
			}
			}
		}
		}
@@ -773,10 +776,11 @@ func checkPeriodicTrigger() {
	// Update appInfo map & get list of updated entries
	// Update appInfo map & get list of updated entries
	updatedApps := []string{}
	updatedApps := []string{}
	for _, appInfo := range appInfoList {
	for _, appInfo := range appInfoList {
		oldAppInfo := appInfoMap[appInfo.Id]
		oldAppInfo, found := appInfoMap[appInfo.Id]
		if hasApplicationInfoChanged(oldAppInfo, &appInfo) {
		if !found || hasApplicationInfoChanged(oldAppInfo, &appInfo) {
			updatedApps = append(updatedApps, appInfo.Name)
			newAppInfo := appInfo
			appInfoMap[appInfo.Id] = &appInfo
			updatedApps = append(updatedApps, newAppInfo.Name)
			appInfoMap[appInfo.Id] = &newAppInfo
		}
		}
	}
	}


@@ -1008,8 +1012,10 @@ func checkMpNotificationRegisteredSubscriptions(appId string, assocId *Associate
				notif.TargetAppInfo = &targetAppInfo
				notif.TargetAppInfo = &targetAppInfo
				notif.AssociateId = append(notif.AssociateId, notifAssociateId)
				notif.AssociateId = append(notif.AssociateId, notifAssociateId)


				go func() {
					sendMpNotification(subscription.CallbackReference, notif)
					sendMpNotification(subscription.CallbackReference, notif)
					log.Info("Mobility_procedure Notification" + "(" + subsIdStr + ")")
					log.Info("Mobility_procedure Notification" + "(" + subsIdStr + ")")
				}()
			}
			}
		}
		}
	}
	}