diff --git a/lib/private/files/stream/quota.php b/lib/private/files/stream/quota.php
index 60e60da8e67a204b8ae6490f29d5842e72f702e0..bb4623b1a7b8d61f1d57bbea95a5d6fe2c9cbf6d 100644
--- a/lib/private/files/stream/quota.php
+++ b/lib/private/files/stream/quota.php
@@ -123,7 +123,7 @@ class Quota {
 	}
 
 	public function stream_lock($mode) {
-		flock($this->source, $mode);
+		return flock($this->source, $mode);
 	}
 
 	public function stream_flush() {