diff options
author | Harald Welte <laforge@gnumonks.org> | 2013-03-16 10:13:04 +0100 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2014-08-21 15:34:15 +0200 |
commit | 6d96dd7477d974b571bd5326b02e1564b0248e44 (patch) | |
tree | cfb64c85d1600fb4d9b67eae7bdc6d6288efe7a0 | |
parent | 35f5653a182805d8945a5e8ec2ed4d3419571ca3 (diff) |
ctrlif: Flush/Clear write_queue when closing the control socket
-rw-r--r-- | openbsc/src/libctrl/control_if.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/openbsc/src/libctrl/control_if.c b/openbsc/src/libctrl/control_if.c index beb5b432..b31f34fc 100644 --- a/openbsc/src/libctrl/control_if.c +++ b/openbsc/src/libctrl/control_if.c @@ -256,6 +256,7 @@ err_index: static void control_close_conn(struct ctrl_connection *ccon) { + osmo_wqueue_clear(&ccon->write_queue); close(ccon->write_queue.bfd.fd); osmo_fd_unregister(&ccon->write_queue.bfd); llist_del(&ccon->list_entry); |