bsc-msc: Flush the write queue when we have lost the connection

This commit is contained in:
Holger Hans Peter Freyther 2010-03-31 13:15:26 +02:00
parent a7f8018eb2
commit 03ca97e458
1 changed files with 1 additions and 0 deletions

View File

@ -190,6 +190,7 @@ struct bsc_msc_connection *bsc_msc_create(const char *ip, int port)
void bsc_msc_lost(struct bsc_msc_connection *con)
{
write_queue_clear(&con->write_queue);
bsc_unregister_fd(&con->write_queue.bfd);
connection_loss(con);
}