Skip to content

Commit

Permalink
Update OnBackPressureBufferFile.php
Browse files Browse the repository at this point in the history
  • Loading branch information
Vinceveve authored Sep 4, 2017
1 parent 9de00fd commit af81536
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/Rxnet/Operator/OnBackPressureBufferFile.php
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,12 @@ function ($next) {
},
[$this->subject, 'onError'],
function() {
$this->sourceCompleted = true;
if(!$this->pending) {
$this->subject->onCompleted();
}
else {
$this->sourceCompleted = true;
}
}
),
$scheduler
Expand Down

0 comments on commit af81536

Please sign in to comment.