Skip to content

Commit

Permalink
Update OnBackPressureBufferFile.php
Browse files Browse the repository at this point in the history
  • Loading branch information
Vinceveve authored Aug 30, 2017
1 parent dfa3256 commit 851166c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Rxnet/Operator/OnBackPressureBufferFile.php
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,7 @@ function ($next) {


},
[$this->subject, 'onError'],
[$this->subject, 'onCompleted']
[$this->subject, 'onError']
),
$scheduler
);
Expand All @@ -130,6 +129,7 @@ public function request()
// Queue is finished we can return to live stream
if ($this->queue->isEmpty()) {
$this->pending = self::BUFFER_EMPTY;
$this->subject->onCompleted();
return;
}
// Take element in order they have been inserted
Expand Down Expand Up @@ -159,4 +159,4 @@ protected function scanDir() {
$this->pending = self::BUFFER_RESTORED;
}
}
}
}

0 comments on commit 851166c

Please sign in to comment.