From 2408fa56bbdba045caff142f4714c0408d3a00c4 Mon Sep 17 00:00:00 2001
From: Rene Krenn <rkrenn@sipwise.com>
Date: Tue, 13 Sep 2022 12:58:49 +0200
Subject: [PATCH] MT#55421 fix deleting domains

xmlrpc request such as domain.reload can fail,
when database content was not yet replicated.

Change-Id: I769f9470b526ef5175826e6c18cbe28c6c1501ca
(cherry picked from commit afe80f01105f9e98267d0ee5c202641638420f86)
---
 lib/NGCP/Panel/Utils/XMLDispatcher.pm | 1 +
 1 file changed, 1 insertion(+)

diff --git a/lib/NGCP/Panel/Utils/XMLDispatcher.pm b/lib/NGCP/Panel/Utils/XMLDispatcher.pm
index 52bc66e755..c947424c28 100644
--- a/lib/NGCP/Panel/Utils/XMLDispatcher.pm
+++ b/lib/NGCP/Panel/Utils/XMLDispatcher.pm
@@ -155,6 +155,7 @@ sub sip_domain_reload {
 </methodCall>
 EOF
 
+    sleep(2);
     my @ret = dispatch($c, "proxy-ng", 1, 1, $reload_command); # we're only checking first host here
 
     if (grep { $_->[1] == 0 } @ret) {