diff options
author | Holger Hans Peter Freyther <zecke@selfish.org> | 2010-08-07 02:40:35 +0800 |
---|---|---|
committer | Holger Hans Peter Freyther <zecke@selfish.org> | 2010-08-07 02:40:35 +0800 |
commit | e33d93c3666b941b39bf288f3888fccdbb28964c (patch) | |
tree | 4f39d6bcec8cf451570ca0f0bf5dd20b0e07d3a5 | |
parent | 0c95c6ac93dfb3245d9fa40eb7958f2b4a84c0ab (diff) |
msc: Manage the msc_link_down only in the msc_conn.c
Only write to this property in the msc_conn context and
not from within the main procedure.
-rw-r--r-- | src/main.c | 1 | ||||
-rw-r--r-- | src/msc_conn.c | 1 |
2 files changed, 1 insertions, 1 deletions
@@ -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); |