From 43d9eec14b9ec59f19a95b864ace7fb798724e2e Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Sat, 7 Aug 2010 01:54:19 +0800 Subject: msc: Make close_msc public, call it from main.. We would have not stopped the timer, fix that by only having one function to close the connection to the msc. --- src/main.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src/main.c') diff --git a/src/main.c b/src/main.c index 8ce1330..a632a7c 100644 --- a/src/main.c +++ b/src/main.c @@ -748,10 +748,7 @@ out: static void sigusr2() { printf("Closing the MSC connection on demand.\n"); - close(bsc.msc_connection.bfd.fd); - bsc_unregister_fd(&bsc.msc_connection.bfd); - bsc.msc_connection.bfd.fd = -1; - release_bsc_resources(&bsc); + msc_close_connection(&bsc); } static void print_help() -- cgit v1.2.3