]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib: ostream-multiplex - Don't close parent streams at destroy
authorTimo Sirainen <timo.sirainen@dovecot.fi>
Fri, 27 Oct 2017 23:35:58 +0000 (02:35 +0300)
committerTimo Sirainen <tss@dovecot.fi>
Mon, 30 Oct 2017 11:04:53 +0000 (13:04 +0200)
The close() method is already called as needed.

src/lib/ostream-multiplex.c

index 6789391979615296c4468e9abfdbcfcdccdb40b1..77b90f9399cfd77f73cb1d3a9ca208803659da12 100644 (file)
@@ -159,7 +159,6 @@ static void o_stream_multiplex_ochannel_destroy(struct iostream_private *stream)
 {
        struct multiplex_ochannel **channelp;
        struct multiplex_ochannel *channel = (struct multiplex_ochannel*)stream;
-       o_stream_multiplex_ochannel_close(stream, TRUE);
        o_stream_unref(&channel->ostream.parent);
        if (channel->buf != NULL)
                buffer_free(&channel->buf);