diff --git a/src/Actions/ManagesCertificates.php b/src/Actions/ManagesCertificates.php index 21805b0..b050031 100644 --- a/src/Actions/ManagesCertificates.php +++ b/src/Actions/ManagesCertificates.php @@ -103,7 +103,7 @@ public function installCertificate($serverId, $siteId, $certificateId, array $da $this->post("servers/$serverId/sites/$siteId/certificates/$certificateId/install", $data); if ($wait) { - $this->retry(30, function () use ($serverId, $siteId, $certificateId) { + $this->retry($this->getTimeout(), function () use ($serverId, $siteId, $certificateId) { $certificate = $this->certificate($serverId, $siteId, $certificateId); return $certificate->status == 'installed'; @@ -125,7 +125,7 @@ public function activateCertificate($serverId, $siteId, $certificateId, $wait = $this->post("servers/$serverId/sites/$siteId/certificates/$certificateId/activate"); if ($wait) { - $this->retry(30, function () use ($serverId, $siteId, $certificateId) { + $this->retry($this->getTimeout(), function () use ($serverId, $siteId, $certificateId) { $certificate = $this->certificate($serverId, $siteId, $certificateId); return $certificate->activationStatus == 'activated'; diff --git a/src/Actions/ManagesDaemons.php b/src/Actions/ManagesDaemons.php index 8fc4bca..a45c762 100644 --- a/src/Actions/ManagesDaemons.php +++ b/src/Actions/ManagesDaemons.php @@ -71,7 +71,7 @@ public function restartDaemon($serverId, $daemonId, $wait = true) $this->post("servers/$serverId/daemons/$daemonId/restart"); if ($wait) { - $this->retry(30, function () use ($serverId, $daemonId) { + $this->retry($this->getTimeout(), function () use ($serverId, $daemonId) { $daemon = $this->daemon($serverId, $daemonId); return $daemon->status == 'installed'; diff --git a/src/Actions/ManagesWorkers.php b/src/Actions/ManagesWorkers.php index cabaac6..992cd27 100644 --- a/src/Actions/ManagesWorkers.php +++ b/src/Actions/ManagesWorkers.php @@ -89,7 +89,7 @@ public function restartWorker($serverId, $siteId, $workerId, $wait = true) $this->post("servers/$serverId/sites/$siteId/workers/$workerId/restart"); if ($wait) { - $this->retry(30, function () use ($serverId, $siteId, $workerId) { + $this->retry($this->getTimeout(), function () use ($serverId, $siteId, $workerId) { $key = $this->worker($serverId, $siteId, $workerId); return $key->status == 'installed';