Merge pull request #11437 from nextcloud/assemblystream-eof-13

[13] AssemblyStream is also eof if we have no more source stream
This commit is contained in:
Morris Jobke 2018-09-28 17:31:42 +02:00 committed by GitHub
commit 48d359ccb6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -182,7 +182,7 @@ class AssemblyStream implements \Icewind\Streams\File {
* @return bool * @return bool
*/ */
public function stream_eof() { public function stream_eof() {
return $this->pos >= $this->size; return $this->pos >= $this->size || $this->currentStream === null;
} }
/** /**