9
0
Fork 0

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.
This commit is contained in:
Holger Hans Peter Freyther 2011-11-25 17:21:44 +01:00
parent 559ecb75df
commit 1459c08cc5
1 changed files with 4 additions and 2 deletions

View File

@ -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);
}
}