minimize waiting time
This commit is contained in:
parent
deda583fad
commit
020803aa7e
|
@ -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('.')) {
|
||||
|
|
|
@ -59,7 +59,9 @@ class AmazonS3 extends Storage {
|
|||
'Bucket' => $this->config['amazons3']['bucket']
|
||||
));
|
||||
|
||||
sleep(5);
|
||||
while($connection->doesBucketExist($this->config['amazons3']['bucket'])) {
|
||||
sleep(1);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue