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.
This commit is contained in:
Holger Hans Peter Freyther
2013-09-03 14:21:48 +02:00
parent c1a8687cb8
commit 33eb5873d9

View File

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