Commit f14f15b286

f14f15b28673fd3a13f3cabd711df20cbf97979b

parent: 3b2889781b

Verified · cmc

cmc <hello@cleberg.net> · 2026-09-26 19:00 UTC

Reset exiftool when its timeout fires as a read completes

Ref #4

Layout: unified · split

internal/format/exiftool.go +3
@@ -125,6 +125,9 @@ func (e *exiftool) run(args ...string) ([]byte, error) {
125125 return fail(err)
126126 }
127127 if string(bytes.TrimRight(line, "\r\n")) == "{ready}" {
128 if !timer.Stop() {
129 e.stop(false) // the timer fired and killed the process as the read completed
130 }
128131 return out, nil
129132 }
130133 out = append(out, line...)