diff options
Diffstat (limited to 'recording')
-rw-r--r-- | recording/runner.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/recording/runner.go b/recording/runner.go index 4145d5f..8f892fa 100644 --- a/recording/runner.go +++ b/recording/runner.go @@ -323,7 +323,7 @@ func record( logger.Info("Recording live stream to file \"%v\"...", filePath) return }, writeBufferSize) - if common.IsErrorOfType(err, &common.UnrecoverableTaskError{}) { + if _, ok := err.(*common.UnrecoverableTaskError); ok { logger.Error("Cannot record: %v", err) return err } else if errors.Is(err, context.Canceled) || err == nil { |