diff options
author | Christian Berendt <berendt@b1-systems.de> | 2013-07-08 16:06:08 +0200 |
---|---|---|
committer | Christian Berendt <berendt@b1-systems.de> | 2013-07-08 16:06:08 +0200 |
commit | 020803aa7e75268d3dbc7413c35ef07b50d5055e (patch) | |
tree | c2028ac9db34a75fe6f9e0fc2871d8e8157ca440 /apps/files_external/lib | |
parent | deda583fadab7e823ba9acf61e6596188eba48c5 (diff) | |
download | nextcloud-server-020803aa7e75268d3dbc7413c35ef07b50d5055e.tar.gz nextcloud-server-020803aa7e75268d3dbc7413c35ef07b50d5055e.zip |
minimize waiting time
Diffstat (limited to 'apps/files_external/lib')
-rw-r--r-- | apps/files_external/lib/amazons3.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/files_external/lib/amazons3.php b/apps/files_external/lib/amazons3.php index 756a03b6b54..b55f913e278 100644 --- a/apps/files_external/lib/amazons3.php +++ b/apps/files_external/lib/amazons3.php @@ -83,7 +83,9 @@ class AmazonS3 extends \OC\Files\Storage\Common { $result = $this->connection->createBucket(array( 'Bucket' => $this->bucket )); - sleep(5); + while ( ! $this->connection->doesBucketExist($this->bucket)) { + sleep(1); + } } if ( ! $this->file_exists('.')) { |