Skip to content

Commit a72402d

Browse files
committed
Fixed bug on windows platform
1 parent 7a2bb5b commit a72402d

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎task/task.go‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@ func (t *Task) Do(tsIdx int) error {
106106
if _, err := w.Write(bytes); err != nil {
107107
return fmt.Errorf("write TS [%s] bytes failed: %s\n", tsFilename, err.Error())
108108
}
109+
_ = f.Close()
109110
if err = os.Rename(fTemp, fPath); err != nil {
110111
return err
111112
}

0 commit comments

Comments
 (0)