Skip to content

Commit

Permalink
Fixed bug on windows platform
Browse files Browse the repository at this point in the history
  • Loading branch information
oopsguy committed Jun 9, 2019
1 parent 7a2bb5b commit a72402d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions task/task.go
Expand Up @@ -106,6 +106,7 @@ func (t *Task) Do(tsIdx int) error {
if _, err := w.Write(bytes); err != nil {
return fmt.Errorf("write TS [%s] bytes failed: %s\n", tsFilename, err.Error())
}
_ = f.Close()
if err = os.Rename(fTemp, fPath); err != nil {
return err
}
Expand Down

0 comments on commit a72402d

Please sign in to comment.