diff options
author | Holger Hans Peter Freyther <zecke@selfish.org> | 2010-03-31 13:15:26 +0200 |
---|---|---|
committer | Holger Hans Peter Freyther <zecke@selfish.org> | 2010-06-15 20:24:10 +0800 |
commit | 03ca97e4586ead547c0bbbc3e62e355644995677 (patch) | |
tree | 03dc591781506f3685a9071fef76d41af7ca8af9 | |
parent | a7f8018eb292767ee0fa97876830d791f3563fd1 (diff) |
bsc-msc: Flush the write queue when we have lost the connection
-rw-r--r-- | openbsc/src/bsc_msc.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/openbsc/src/bsc_msc.c b/openbsc/src/bsc_msc.c index 4169229af..f718b55f6 100644 --- a/openbsc/src/bsc_msc.c +++ b/openbsc/src/bsc_msc.c @@ -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); } |