From 5b04ddd6bc9e0af5f73694371cd3988b1d5be7e8 Mon Sep 17 00:00:00 2001 From: thomascube <thomas@roundcube.net> Date: Fri, 04 May 2012 06:06:37 -0400 Subject: [PATCH] Fix multi-threaded autocompletion when number of threads > number of sources --- program/js/app.js | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/program/js/app.js b/program/js/app.js index c440d16..487d718 100644 --- a/program/js/app.js +++ b/program/js/app.js @@ -3812,7 +3812,7 @@ for (i=0; i<threads; i++) { source = this.ksearch_data.sources.shift(); - if (threads > 1 && source === null) + if (threads > 1 && source === undefined) break; post_data._source = source ? source : ''; -- Gitblit v1.9.1