Mercurial > dovecot > original-hg > dovecot-1.2
changeset 3665:1f4b4387595b HEAD
Revert previous "cleanup" which broke things.. Added a comment.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Wed, 19 Oct 2005 16:20:07 +0300 |
parents | 9bdf25784ac2 |
children | b381c9b899a2 |
files | src/lib/ostream-file.c |
diffstat | 1 files changed, 7 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/lib/ostream-file.c Sun Oct 16 23:24:01 2005 +0300 +++ b/src/lib/ostream-file.c Wed Oct 19 16:20:07 2005 +0300 @@ -367,7 +367,13 @@ fstream->io = NULL; } } else { - i_assert(fstream->io != NULL); + /* Add the IO handler if it's not there already. Callback + might have just returned 0 without there being any data + to be sent. */ + if (fstream->io == NULL) { + fstream->io = io_add(fstream->fd, IO_WRITE, + stream_send_io, fstream); + } } o_stream_unref(&fstream->ostream.ostream);