Skip to content

Commit

Permalink
fix(concatEager): activeSubscription should be changed to next subs…
Browse files Browse the repository at this point in the history
…cription (#682)

* Fix ConcatEagerStream bug

* Update concat_eager.dart

Co-authored-by: Petrus Nguyễn Thái Học <hoc081098@gmail.com>
  • Loading branch information
Stitch-Taotao and hoc081098 authored Jun 15, 2022
1 parent dfae6fa commit 6a8eef5
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/src/streams/concat_eager.dart
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,9 @@ class ConcatEagerStream<T> extends StreamView<T> {
return () {
if (index < subscriptions.length - 1) {
completeEvents[index].complete();
activeSubscription = subscriptions[index + 1];
} else if (index == subscriptions.length - 1) {
controller.close();
} else {
activeSubscription = subscriptions[index + 1];
}
};
}
Expand Down

0 comments on commit 6a8eef5

Please sign in to comment.