Skip to content

Commit

Permalink
fix: close bwrap file before deleting it
Browse files Browse the repository at this point in the history
- fixes #127
  • Loading branch information
teleclimber committed May 21, 2024
1 parent bb9f3ef commit 6e0f48e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cmd/ds-host/sandbox/bwrapjsonstatus_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ func (b *BwrapJsonStatus) Stop() {
if success == -1 {
b.getLogger("Stop() unix.InotifyRmWatch()").Log("success is -1")
}
b.f.Close()
os.RemoveAll(b.filename)
}

Expand Down

0 comments on commit 6e0f48e

Please sign in to comment.