aboutsummaryrefslogtreecommitdiffstats
path: root/apps/dav/lib/Upload/AssemblyStream.php
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2018-09-28 14:39:23 +0200
committerRobin Appelman <robin@icewind.nl>2018-09-28 15:09:43 +0200
commit6b7a69752c3d395a87bb27007a9bb673a017a757 (patch)
treeafa4469e7cf4535d9179e75bc567d0e2066aec9d /apps/dav/lib/Upload/AssemblyStream.php
parent02de67773c5ce1e38a90ce45b60ce249ed9a4042 (diff)
downloadnextcloud-server-6b7a69752c3d395a87bb27007a9bb673a017a757.tar.gz
nextcloud-server-6b7a69752c3d395a87bb27007a9bb673a017a757.zip
AssemblyStream is also eof if we have no more source stream
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'apps/dav/lib/Upload/AssemblyStream.php')
-rw-r--r--apps/dav/lib/Upload/AssemblyStream.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/dav/lib/Upload/AssemblyStream.php b/apps/dav/lib/Upload/AssemblyStream.php
index e20d8f9adba..3ba24bf60fd 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;
}
/**