aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--main.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/main.go b/main.go
index a953fa6..5972132 100644
--- a/main.go
+++ b/main.go
@@ -209,6 +209,7 @@ func workGenerator(ctx context.Context, opts options.Options, fp *os.File, quest
}
}
+ cancel()
select {
case <-ctx.Done():
case <-time.After(opts.Timeout + time.Second):