Skip to content

Commit

Permalink
Merge pull request #2485 from tchaloupka/fix_2484
Browse files Browse the repository at this point in the history
Fix #2484 - clear  `m_fill` on flush exception
  • Loading branch information
s-ludwig authored Oct 25, 2020
2 parents 80741e3 + 461b7fe commit a96badf
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions stream/vibe/stream/wrapper.d
Original file line number Diff line number Diff line change
Expand Up @@ -309,6 +309,7 @@ struct StreamOutputRange(OutputStream, size_t buffer_size = 256)

~this()
{
scope (failure) () @trusted { destroy(m_stream); }(); // workaround for #2484
flush();
}

Expand Down

0 comments on commit a96badf

Please sign in to comment.