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) {
125 return fail(err) 125 return fail(err)
126 } 126 }
127 if string(bytes.TrimRight(line, "\r\n")) == "{ready}" { 127 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 }
128 return out, nil 131 return out, nil
129 } 132 }
130 out = append(out, line...) 133 out = append(out, line...)