Skip to content

Commit 85e2fdb

Browse files
committed
don´t close on write error
1 parent bee3061 commit 85e2fdb

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

dnstap_fstrm_file_output.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,6 @@ func (o *DnstapFstrmFileOutput) open() error {
8484

8585
func (o *DnstapFstrmFileOutput) write(frame []byte) error {
8686
if _, err := o.enc.Write(frame); err != nil {
87-
o.close()
8887
return err
8988
}
9089
return nil

0 commit comments

Comments
 (0)