diff --git a/src/internal/operators/debounce.ts b/src/internal/operators/debounce.ts index 127948784d..8477535c0b 100644 --- a/src/internal/operators/debounce.ts +++ b/src/internal/operators/debounce.ts @@ -105,7 +105,7 @@ class DebounceSubscriber extends OuterSubscriber { } subscription = subscribeToResult(this, duration); - if (!subscription.closed) { + if (subscription && !subscription.closed) { this.add(this.durationSubscription = subscription); } }