Add not delete the event if more to write.

This commit is contained in:
nicm 2017-02-10 15:39:43 +00:00
parent d22c15107b
commit 921880e00b

4
tty.c
View File

@ -182,8 +182,8 @@ tty_write_callback(__unused int fd, __unused short events, void *data)
return; return;
log_debug("%s: wrote %d bytes (of %zu)", tty->path, nwrite, size); log_debug("%s: wrote %d bytes (of %zu)", tty->path, nwrite, size);
if (EVBUFFER_LENGTH(tty->out) == 0) if (EVBUFFER_LENGTH(tty->out) != 0)
event_del(&tty->event_out); event_add(&tty->event_out, NULL);
} }
int int