diff options
author | nicm <nicm> | 2017-02-10 15:39:43 +0000 |
---|---|---|
committer | nicm <nicm> | 2017-02-10 15:39:43 +0000 |
commit | 921880e00beb052d2c59fbeba75d0a0aaa8888ea (patch) | |
tree | b83a3dbc32ff190508a5731d278967666ed7a19d /tty.c | |
parent | d22c15107ba3bd019cfbc3e83cd1b12acf258029 (diff) |
Add not delete the event if more to write.
Diffstat (limited to 'tty.c')
-rw-r--r-- | tty.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 |