Fixed domain adding via API which always failed without lock

This commit is contained in:
Kienan Stewart 2016-10-28 03:02:24 +00:00 committed by root
parent 50d8f8f1fb
commit 1abacb64ee
1 changed files with 2 additions and 0 deletions

View File

@ -110,7 +110,9 @@ class Alternc_Api_Object_Domain extends Alternc_Api_Legacyobject {
$options["noerase"] = false;
$options["force"] = false;
}
$this->dom->lock();
$did = $this->dom->add_domain($options["domain"], $options["dns"], $options["noerase"], $options["force"], $options["isslave"], $options["slavedom"]);
$this->dom->unlock();
if (!$did) {
return $this->alterncLegacyErrorManager();
} else {