Fix bytarget requests being stopped (bug #3087)
authorAdam Dickmeiss <adam@indexdata.dk>
Fri, 30 Oct 2009 21:45:28 +0000 (22:45 +0100)
committerAdam Dickmeiss <adam@indexdata.dk>
Fri, 30 Oct 2009 21:45:28 +0000 (22:45 +0100)
Context global activeClients is set to 1 when a search is initiated
to ensure that if bytarget is executed it will be continued if
no response has been returned which would set activeClients (show,
stat).

js/pz2.js

index affff33..800546e 100644 (file)
--- a/js/pz2.js
+++ b/js/pz2.js
@@ -251,6 +251,7 @@ pz2.prototype =
         this.termCounter = 0;
         this.bytargetCounter = 0;
         this.statCounter = 0;
+        this.activeClients = 1;
         
         // no proxy mode
         if( !this.initStatusOK )