ctrlif: Flush/Clear write_queue when closing the control socket

changes/88/3188/1
Harald Welte 10 years ago committed by Holger Hans Peter Freyther
parent 1304b35a64
commit cc6b2d2fa3
  1. 1
      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);

Loading…
Cancel
Save