From: Stephan Bosch Date: Thu, 23 Apr 2020 13:16:03 +0000 (+0200) Subject: lib: ostream-wrapper - Allow parent output being closed in wrapper_ostream_continue(). X-Git-Tag: 2.3.11.2~159 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=38db8023584aa41be20e78632f2722c8481e52fc;p=thirdparty%2Fdovecot%2Fcore.git lib: ostream-wrapper - Allow parent output being closed in wrapper_ostream_continue(). This happens when wrapper_ostream_output_destroyed() is called while waiting in flush wait loop. --- diff --git a/src/lib/ostream-wrapper.c b/src/lib/ostream-wrapper.c index 2a3b78f963..5ba6e2ea93 100644 --- a/src/lib/ostream-wrapper.c +++ b/src/lib/ostream-wrapper.c @@ -1081,7 +1081,6 @@ void wrapper_ostream_continue(struct wrapper_ostream *wostream) if (wostream->flush_waiting) { /* Inside wrapper_ostream_flush_wait() */ - i_assert(!wostream->output_closed); ioloop = wostream->flush_ioloop; } if (stream->ostream.closed ||