Skip to content

Commit

Permalink
fix: Don't continue to write thumbnail if done
Browse files Browse the repository at this point in the history
Signed-off-by: Vincent Boutour <[email protected]>
  • Loading branch information
ViBiOh committed Jul 17, 2022
1 parent 7cdcaa9 commit ba92fba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/thumbnail/thumbnail.go
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ func (a App) thumbnailHash(ctx context.Context, items []absto.Item) string {
}

func (a App) encodeContent(ctx context.Context, w io.Writer, isDone func() bool, item absto.Item) {
if item.IsDir {
if item.IsDir || isDone() {
return
}

Expand Down

0 comments on commit ba92fba

Please sign in to comment.