Skip to content

Commit

Permalink
Merge pull request akamai#7 from lookaflyingdonkey/fix-writestream-ti…
Browse files Browse the repository at this point in the history
…meout-bug

Return false when writeStream fails
  • Loading branch information
dshafik authored Mar 28, 2017
2 parents 55cb921 + b6d58df commit 6d8a720
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/FileStoreAdapter.php
Original file line number Diff line number Diff line change
Expand Up @@ -407,6 +407,11 @@ public function write($path, $contents, \League\Flysystem\Config $config)
public function writeStream($path, $resource, \League\Flysystem\Config $config)
{
$meta = $this->write($path, $resource, $config);

if($meta === false) {
return false;
}

$meta['stream'] = $resource;
return $meta;
}
Expand Down

0 comments on commit 6d8a720

Please sign in to comment.