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:
commit
48d359ccb6
|
@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue