nat: Clear all pending messages in case the BSC disconnected

Throw away all messages we have scheduled but never delivered
to the BSC.
This commit is contained in:
Holger Hans Peter Freyther 2010-03-26 09:27:08 +01:00
parent 3025e198ea
commit f38e879ca4
1 changed files with 1 additions and 0 deletions

View File

@ -481,6 +481,7 @@ static void remove_bsc_connection(struct bsc_connection *connection)
struct sccp_connections *sccp_patch, *tmp;
bsc_unregister_fd(&connection->write_queue.bfd);
close(connection->write_queue.bfd.fd);
write_queue_clear(&connection->write_queue);
llist_del(&connection->list_entry);
/* stop the timeout timer */