Add re-try on faulty show
authorDennis Schafroth <dennis@indexdata.com>
Thu, 24 Nov 2011 13:11:58 +0000 (14:11 +0100)
committerDennis Schafroth <dennis@indexdata.com>
Thu, 24 Nov 2011 13:11:58 +0000 (14:11 +0100)
js/pz2.js

index ca0d28c..1b586df 100644 (file)
--- a/js/pz2.js
+++ b/js/pz2.js
@@ -430,6 +430,10 @@ pz2.prototype =
                 for (i = 0; i < hits.length; i++)
                   show.hits[i] = Element_parseChildNodes(hits[i]);
             } else {
+               // We prob. got a 417 Already blocked, need to retry
+               context.showTimer = setTimeout(function () {
+                   context.show();
+                }, delay);
               context.throwError('Show failed. Malformed WS resonse.',
                   114);
             }