From 0f6619a8ce877d5cf82b94ae5ad16045f2da3193 Mon Sep 17 00:00:00 2001 From: bfederle Date: Tue, 24 Jan 2012 13:48:45 -0800 Subject: [PATCH] bug 11798 Fix create LB sticky being called twice --- ui/scripts/network.js | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/ui/scripts/network.js b/ui/scripts/network.js index 9cd3284d0d4..ababa55e30b 100644 --- a/ui/scripts/network.js +++ b/ui/scripts/network.js @@ -1486,6 +1486,8 @@ dataType: 'json', async: true, success: function(data) { + var lbCreationComplete = false; + args.response.success({ fullRefresh: true, _custom: { @@ -1499,7 +1501,13 @@ pollAsyncJobResult({ _custom: args._custom, - complete: function(args) { + complete: function(args) { + if (lbCreationComplete) { + return; + } + + lbCreationComplete = true; + // Create stickiness policy if (stickyData && stickyData.methodname &&