From 3c44bc3b2ce8ea3c1066ed3f52adc244c016b89a Mon Sep 17 00:00:00 2001 From: Pedro Alvarez Date: Wed, 18 Apr 2018 14:26:52 +0100 Subject: [PATCH] Fixed double erease mistake. The SIGPIPE seems to be gone. --- srsepc/src/mme/s1ap.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/srsepc/src/mme/s1ap.cc b/srsepc/src/mme/s1ap.cc index 07f80d98a..180859f08 100644 --- a/srsepc/src/mme/s1ap.cc +++ b/srsepc/src/mme/s1ap.cc @@ -470,11 +470,10 @@ s1ap::release_ues_ecm_ctx_in_enb(int32_t enb_assoc) emm_ctx->state = EMM_STATE_DEREGISTERED; } m_s1ap_log->console("Releasing UE ECM context. UE-MME S1AP Id: %d\n", ecm_ctx->mme_ue_s1ap_id); - ues_in_enb->second.erase(ecm_ctx->mme_ue_s1ap_id); ecm_ctx->state = ECM_STATE_IDLE; ecm_ctx->mme_ue_s1ap_id = 0; ecm_ctx->enb_ue_s1ap_id = 0; - ues_in_enb->second.erase(++ue_id); + ues_in_enb->second.erase(ue_id++); } } }