mirror of
https://github.com/nextcloud/server.git
synced 2026-06-11 09:42:09 -04:00
minimize waiting time
This commit is contained in:
parent
deda583fad
commit
020803aa7e
2 changed files with 6 additions and 2 deletions
|
|
@ -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 a new issue