aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2010-03-31 13:15:26 +0200
committerHolger Hans Peter Freyther <zecke@selfish.org>2010-03-31 13:15:26 +0200
commit483b768ab22e9e3b6c3cc41416c0a719ed1cfa97 (patch)
treee6a1c45f6caa45ea7bf55ce482457696c2cb7403
parent82cb311c4fb184a12676fd2090fcdc09cb3e399a (diff)
bsc-msc: Flush the write queue when we have lost the connection
-rw-r--r--openbsc/src/bsc_msc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/openbsc/src/bsc_msc.c b/openbsc/src/bsc_msc.c
index 5682767b8..a9dc62021 100644
--- a/openbsc/src/bsc_msc.c
+++ b/openbsc/src/bsc_msc.c
@@ -191,6 +191,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);
}