aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/main.c1
-rw-r--r--src/msc_conn.c1
2 files changed, 1 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c
index 372c49a..bb15ed9 100644
--- a/src/main.c
+++ b/src/main.c
@@ -325,7 +325,6 @@ void release_bsc_resources(struct bsc_data *bsc)
struct active_sccp_con *tmp;
struct active_sccp_con *con;
- bsc->msc_link_down = 1;
bsc_del_timer(&bsc->reset_timeout);
/* 2. clear the MGCP endpoints */
diff --git a/src/msc_conn.c b/src/msc_conn.c
index ac160bb..19394f8 100644
--- a/src/msc_conn.c
+++ b/src/msc_conn.c
@@ -79,6 +79,7 @@ void msc_close_connection(struct bsc_data *bsc)
close(bfd->fd);
bsc_unregister_fd(bfd);
bfd->fd = -1;
+ bsc->msc_link_down = 1;
release_bsc_resources(bsc);
bsc_del_timer(&bsc->ping_timeout);
bsc_del_timer(&bsc->pong_timeout);