Skip to content

Commit

Permalink
Fixed segfault when printlog false
Browse files Browse the repository at this point in the history
  • Loading branch information
pgaskin committed Dec 15, 2017
1 parent 4a53aeb commit 2a6cfad
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion kepub/kepub.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,9 @@ func Kepubify(src, dest string, printlog bool) error {
}
wg.Wait()
if len(cerr) > 0 {
bar.Finish()
if printlog {
bar.Finish()
}
fmt.Println()
return <-cerr
}
Expand Down

0 comments on commit 2a6cfad

Please sign in to comment.