Merge pull request #11432 from nextcloud/assemblystream-eof

AssemblyStream is also eof if we have no more source stream
This commit is contained in:
Morris Jobke 2018-09-28 16:25:49 +02:00 committed by GitHub
commit 0ded277bea
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;
}
/**