aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/manager/diff.go
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/manager/diff.go')
-rw-r--r--pkg/manager/diff.go6
1 files changed, 5 insertions, 1 deletions
diff --git a/pkg/manager/diff.go b/pkg/manager/diff.go
index 8218ce924..bdf638a51 100644
--- a/pkg/manager/diff.go
+++ b/pkg/manager/diff.go
@@ -110,7 +110,11 @@ func (dc *diffContext) Loop(baseCtx context.Context) error {
// Let both base and patched instances somewhat progress in fuzzing before we take
// VMs away for bug reproduction.
// TODO: determine the exact moment of corpus triage.
- time.Sleep(15 * time.Minute)
+ select {
+ case <-time.After(15 * time.Minute):
+ case <-ctx.Done():
+ return nil
+ }
log.Logf(0, "starting bug reproductions")
reproLoop.Loop(ctx)
return nil