From 961e31696bcac78c453f359c9afb9594100ca522 Mon Sep 17 00:00:00 2001 From: Kloen Date: Tue, 31 Jan 2023 19:01:54 +0100 Subject: [PATCH] fix: Don't return as completed an already consumed checksum. --- extract_with_checksum.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/extract_with_checksum.go b/extract_with_checksum.go index 3428271..2a6d8f1 100644 --- a/extract_with_checksum.go +++ b/extract_with_checksum.go @@ -61,8 +61,8 @@ func (c *checksumCompleteCond) Complete(neko *nekoData, uncompressed []byte) boo chSum := crc32.ChecksumIEEE(uncompressed) for _, v := range c.maps { - if _, ok := v.checksums[chSum]; ok { - return true + if n, ok := v.checksums[chSum]; ok { + return n > 0 } }