aboutsummaryrefslogtreecommitdiffstats
path: root/src/bsc.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/bsc.c')
-rw-r--r--src/bsc.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/bsc.c b/src/bsc.c
index 1bfa122..33cadf6 100644
--- a/src/bsc.c
+++ b/src/bsc.c
@@ -118,8 +118,10 @@ static void sigusr2()
struct msc_connection *msc;
printf("Closing the MSC connection on demand.\n");
- llist_for_each_entry(msc, &bsc->mscs, entry)
- msc_close_connection(msc);
+ llist_for_each_entry(msc, &bsc->mscs, entry) {
+ if (!msc->msc_link_down)
+ msc_close_connection(msc);
+ }
}