From 33eb5873d9eb2442190e48bc401e1d8f06c73103 Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Tue, 3 Sep 2013 14:21:48 +0200 Subject: bsc_msc: Stop the re-connect timer in case the msc is lost It was possible to cause a crash by enabling and disabling the MSC connection. The enabling lead to scheduling a connection and the second call was not stopping the timer. --- openbsc/src/libbsc/bsc_msc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/openbsc/src/libbsc/bsc_msc.c b/openbsc/src/libbsc/bsc_msc.c index ccb0f4b23..c8cdce0c3 100644 --- a/openbsc/src/libbsc/bsc_msc.c +++ b/openbsc/src/libbsc/bsc_msc.c @@ -243,6 +243,7 @@ void bsc_msc_lost(struct bsc_msc_connection *con) { osmo_wqueue_clear(&con->write_queue); osmo_timer_del(&con->timeout_timer); + osmo_timer_del(&con->reconnect_timer); if (con->write_queue.bfd.fd >= 0) osmo_fd_unregister(&con->write_queue.bfd); -- cgit v1.2.3