summaryrefslogtreecommitdiff
path: root/recording/runner.go
diff options
context:
space:
mode:
Diffstat (limited to 'recording/runner.go')
-rw-r--r--recording/runner.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/recording/runner.go b/recording/runner.go
index d4e5a96..bcea9a7 100644
--- a/recording/runner.go
+++ b/recording/runner.go
@@ -201,6 +201,11 @@ func watcherRecoverableLoop(
chWatcherEvent,
)
+ // the context is cancelled, stop watching
+ if errors.Is(err, context.Canceled) {
+ return
+ }
+
switch errReason {
case ErrSuccess:
// stop normally, the context is closed