- for ep, value := range rtmgr.RMRConnStatus {
- if ep == *data.E2TAddress && value == true {
- return nil
- }
+ if rtmgr.RMRConnStatus[*data.E2TAddress] == true {
+ sbi.Conn.Lock()
+ delete(rtmgr.RMRConnStatus, *data.E2TAddress)
+ sbi.Conn.Unlock()
+ xapp.Logger.Debug("RMRConnStatus Map after = %v", rtmgr.RMRConnStatus)
+ return nil