diff options
author | Holger Hans Peter Freyther <zecke@selfish.org> | 2011-11-25 17:21:44 +0100 |
---|---|---|
committer | Holger Hans Peter Freyther <zecke@selfish.org> | 2011-11-25 17:24:59 +0100 |
commit | fffdd76f567313624016be34621c0021056797e3 (patch) | |
tree | 9f3341a26cba67f5d49eca6a5ac60522e9352a45 | |
parent | 31d6597c3f088cc94c4e845c368e3417aa585069 (diff) |
msc: Only take down the link if it is up
If the link was never started and we send a SIGUSR2
we would start the link. Don't do it.
-rw-r--r-- | src/bsc.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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); + } } |