mirror of
https://gitea.osmocom.org/cellular-infrastructure/osmo-mgw.git
synced 2025-10-23 08:12:01 +00:00
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:
@@ -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);
|
||||
|
Reference in New Issue
Block a user