]> source.dussan.org Git - nextcloud-server.git/commitdiff
wait methods are probably not working, just wait
authorChristian Berendt <berendt@b1-systems.de>
Mon, 8 Jul 2013 13:56:56 +0000 (15:56 +0200)
committerChristian Berendt <berendt@b1-systems.de>
Mon, 8 Jul 2013 13:56:56 +0000 (15:56 +0200)
apps/files_external/lib/amazons3.php
apps/files_external/tests/amazons3.php

index e2a98ab5a61c8eec84792e3dd234e304d095d7c3..756a03b6b54fd013ab2e924612e9ffbf4fadced9 100644 (file)
@@ -83,9 +83,7 @@ class AmazonS3 extends \OC\Files\Storage\Common {
                        $result = $this->connection->createBucket(array(
                                'Bucket' => $this->bucket
                        ));
-                       $this->connection->waitUntilBucketExists(array(
-                               'Bucket' => $this->bucket
-                       ));
+                       sleep(5);
                }
 
                if ( ! $this->file_exists('.')) {
index 8dcd386341e18b759a8cd89e1fb2a2191d7800a1..15bf9b14772149cd395c5398421c0caea8249528 100644 (file)
@@ -59,9 +59,7 @@ class AmazonS3 extends Storage {
                                'Bucket' => $this->config['amazons3']['bucket']
                        ));
 
-                       $connection->waitUntilBucketNotExists(array(
-                               'Bucket' => $this->config['amazons3']['bucket']
-                       ));
+                       sleep(5);
                }
        }
 }