aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2013-03-19 22:51:19 +0100
committerHolger Hans Peter Freyther <zecke@selfish.org>2013-03-19 22:51:19 +0100
commit49844e8debdc9111327d202cb35122ae0ac58ee2 (patch)
tree837de3a762688486b859fa06125ee061715223dc
parenta5a17fa80affe0523689c7c7970391f115dccd51 (diff)
msc_conn: Clear the write queue when the connection is dropping
-rw-r--r--src/msc_conn.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/msc_conn.c b/src/msc_conn.c
index e895e77..ff73a49 100644
--- a/src/msc_conn.c
+++ b/src/msc_conn.c
@@ -68,6 +68,7 @@ void msc_close_connection(struct msc_connection *fw)
osmo_timer_del(&fw->ping_timeout);
osmo_timer_del(&fw->pong_timeout);
osmo_timer_del(&fw->msc_timeout);
+ osmo_wqueue_clear(&fw->msc_connection);
msc_schedule_reconnect(fw);
}