Skip to content

Commit

Permalink
Merge pull request #18 from exante/bugfix/file_descriptors_leaking_issue
Browse files Browse the repository at this point in the history
File descriptors leaking issue fix
  • Loading branch information
penemue authored Aug 19, 2018
2 parents 0d22eab + ae2e042 commit ec28fb1
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,8 @@ open class FileDataWriter @JvmOverloads constructor(private val reader: FileData
try {
(this.file ?: throw ExodusException("Can't close already closed FileDataWriter")).close()
this.file = null
this.dirChannel?.close()
this.dirChannel = null
} catch (e: IOException) {
throw ExodusException("Can't close FileDataWriter", e)
}
Expand Down

0 comments on commit ec28fb1

Please sign in to comment.