diff options
author | Holger Hans Peter Freyther <holger@moiji-mobile.com> | 2013-09-03 14:21:48 +0200 |
---|---|---|
committer | Holger Hans Peter Freyther <holger@moiji-mobile.com> | 2013-09-03 15:04:17 +0200 |
commit | 33eb5873d9eb2442190e48bc401e1d8f06c73103 (patch) | |
tree | 7276b32afc2da4e7c38835b0e64946d58e0e0f1c /openbsc/src | |
parent | c1a8687cb83fe7d8dade703587253765b83842ef (diff) |
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.
Diffstat (limited to 'openbsc/src')
-rw-r--r-- | openbsc/src/libbsc/bsc_msc.c | 1 |
1 files changed, 1 insertions, 0 deletions
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); |