diff --git a/pullquote b/pullquote deleted file mode 100755 index 8998bb5..0000000 Binary files a/pullquote and /dev/null differ diff --git a/pullquote.go b/pullquote.go index bfc2ead..5491150 100644 --- a/pullquote.go +++ b/pullquote.go @@ -242,7 +242,6 @@ func listFiles(ctx context.Context, fns []string, r io.Reader, walk bool) (<-cha } ctx, cncl := context.WithCancel(ctx) - defer cncl() var ( wg sync.WaitGroup @@ -310,6 +309,8 @@ func listFiles(ctx context.Context, fns []string, r io.Reader, walk bool) (<-cha } go func() { + defer cncl() + seen := make(map[string]struct{}) submit := func(path string) {