Skip to content

Commit

Permalink
combinedwriter: pass flush to writers
Browse files Browse the repository at this point in the history
  • Loading branch information
2bc4 committed Feb 20, 2024
1 parent 847d951 commit 572cb6a
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/combinedwriter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,14 @@ impl Write for CombinedWriter {
}

fn flush(&mut self) -> io::Result<()> {
if let Some(ref mut player) = self.player {
player.flush()?;
}

if let Some(ref mut recorder) = self.recorder {
recorder.flush()?;
}

Ok(())
}

Expand Down

0 comments on commit 572cb6a

Please sign in to comment.