[dovecot-cvs] dovecot/src/lib ostream-file.c,1.60,1.61

cras at dovecot.org cras at dovecot.org
Sun Apr 2 13:12:09 EEST 2006


Update of /var/lib/cvs/dovecot/src/lib
In directory talvi:/tmp/cvs-serv12819

Modified Files:
	ostream-file.c 
Log Message:
If output flush callback closed the stream, don't add another flush I/O
handler to it even if there would still be something to flush.



Index: ostream-file.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib/ostream-file.c,v
retrieving revision 1.60
retrieving revision 1.61
diff -u -d -r1.60 -r1.61
--- ostream-file.c	29 Jan 2006 12:14:47 -0000	1.60
+++ ostream-file.c	2 Apr 2006 10:12:07 -0000	1.61
@@ -363,7 +363,7 @@
 			/* all sent */
 			io_remove(&fstream->io);
 		}
-	} else {
+	} else if (!fstream->ostream.ostream.closed) {
 		/* Add the IO handler if it's not there already. Callback
 		   might have just returned 0 without there being any data
 		   to be sent. */



More information about the dovecot-cvs mailing list