Merge pull request #11436 from nextcloud/assemblystream-eof-14

[14] AssemblyStream is also eof if we have no more source stream
This commit is contained in:
Roeland Jago Douma 2018-09-28 16:56:34 +02:00 committed by GitHub
commit 48b48fad16
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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