aboutsummaryrefslogtreecommitdiffstats
path: root/src/core/osmo_io.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/osmo_io.c')
-rw-r--r--src/core/osmo_io.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/core/osmo_io.c b/src/core/osmo_io.c
index 857644d2..9960fb41 100644
--- a/src/core/osmo_io.c
+++ b/src/core/osmo_io.c
@@ -395,8 +395,7 @@ void osmo_iofd_read_disable(struct osmo_io_fd *iofd)
void osmo_iofd_write_enable(struct osmo_io_fd *iofd)
{
iofd->write_enabled = true;
- if (iofd->tx_queue.current_length > 0)
- osmo_iofd_ops.write_enable(iofd);
+ osmo_iofd_ops.write_enable(iofd);
}
/*! Disable writing to this iofd