Skip to content

Commit

Permalink
Ensure to flush buffers before closing file.
Browse files Browse the repository at this point in the history
  • Loading branch information
juanjosegarciaripoll committed Feb 22, 2018
1 parent eaa6880 commit 90e5866
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/sdf/odata_file.cc
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ void
OutDataFile::close()
{
if (is_open()) {
_stream.flush();
_stream.close();
DataFile::close();
}
Expand Down

0 comments on commit 90e5866

Please sign in to comment.