Skip to content

Commit

Permalink
safer Ombu file closing
Browse files Browse the repository at this point in the history
  • Loading branch information
pavel-krivanek committed Jan 21, 2020
1 parent 9ad3324 commit ad7ad43
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Ombu/OmFileStore.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ OmFileStore >> flushEntryBuffer [
self entryBuffer isEmpty ifTrue: [ ^self ].

[ fileStream := ZnCharacterWriteStream on: fileReference binaryWriteStream encoding: #utf8. ] on: ReadOnlyFileException do: [ :anException |
fileStream close.
fileStream ifNotNil: #close.
^ self
].

Expand Down

0 comments on commit ad7ad43

Please sign in to comment.