aboutsummaryrefslogtreecommitdiff
path: root/tty.c
diff options
context:
space:
mode:
Diffstat (limited to 'tty.c')
-rw-r--r--tty.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tty.c b/tty.c
index 4e7af46e..53f57713 100644
--- a/tty.c
+++ b/tty.c
@@ -182,8 +182,8 @@ tty_write_callback(__unused int fd, __unused short events, void *data)
return;
log_debug("%s: wrote %d bytes (of %zu)", tty->path, nwrite, size);
- if (EVBUFFER_LENGTH(tty->out) == 0)
- event_del(&tty->event_out);
+ if (EVBUFFER_LENGTH(tty->out) != 0)
+ event_add(&tty->event_out, NULL);
}
int