From be160b9da23e77996e7c83a3f5c5158aa7e22d17 Mon Sep 17 00:00:00 2001 From: thomascube <thomas@roundcube.net> Date: Tue, 08 May 2012 06:13:22 -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 f593b32..2a47fa9 100644 --- a/program/js/app.js +++ b/program/js/app.js @@ -3796,7 +3796,7 @@ for (i=0; i<threads; i++) { source = this.ksearch_data.sources.shift(); - if (threads > 1 && source === null) + if (threads > 1 && source === undefined) break; lock = this.display_message(this.get_label('searching'), 'loading'); -- Gitblit v1.9.1