minimize waiting time

This commit is contained in:
Christian Berendt 2013-07-08 16:06:08 +02:00
parent deda583fad
commit 020803aa7e
2 changed files with 6 additions and 2 deletions

View File

@ -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('.')) {

View File

@ -59,7 +59,9 @@ class AmazonS3 extends Storage {
'Bucket' => $this->config['amazons3']['bucket']
));
sleep(5);
while($connection->doesBucketExist($this->config['amazons3']['bucket'])) {
sleep(1);
}
}
}
}