Skip to content

Commit

Permalink
refactor(SubjectSubscription): add check for isStopped to fast return
Browse files Browse the repository at this point in the history
  • Loading branch information
benlesh committed May 22, 2016
1 parent ba9ef2b commit a5f50f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/SubjectSubscription.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export class SubjectSubscription extends Subscription {

this.subject = null;

if (!observers || observers.length === 0 || subject.isUnsubscribed) {
if (!observers || observers.length === 0 || subject.isStopped || subject.isUnsubscribed) {
return;
}

Expand Down

0 comments on commit a5f50f3

Please sign in to comment.