summaryrefslogtreecommitdiff
path: root/program
diff options
context:
space:
mode:
authorthomascube <thomas@roundcube.net>2012-05-04 10:06:37 +0000
committerAleksander Machniak <alec@alec.pl>2012-05-08 12:13:22 +0200
commitbe160b9da23e77996e7c83a3f5c5158aa7e22d17 (patch)
tree9dd5e200df8b7c6eb484337e374a9cad04b6370a /program
parent60d9c79f910bb655f08ab39d7fb7fe1ded7a6753 (diff)
Fix multi-threaded autocompletion when number of threads > number of sources
Diffstat (limited to 'program')
-rw-r--r--program/js/app.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/program/js/app.js b/program/js/app.js
index f593b32bc..2a47fa985 100644
--- a/program/js/app.js
+++ b/program/js/app.js
@@ -3796,7 +3796,7 @@ function rcube_webmail()
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');