From e3dab24a2a0a5ea1fc9135256c3a51a12408ea8c Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Fri, 28 Sep 2018 14:39:23 +0200 Subject: [PATCH] AssemblyStream is also eof if we have no more source stream Signed-off-by: Robin Appelman --- apps/dav/lib/Upload/AssemblyStream.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/dav/lib/Upload/AssemblyStream.php b/apps/dav/lib/Upload/AssemblyStream.php index e20d8f9adb..3ba24bf60f 100644 --- a/apps/dav/lib/Upload/AssemblyStream.php +++ b/apps/dav/lib/Upload/AssemblyStream.php @@ -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; } /**