Fix multi-threaded autocompletion when number of threads > number of sources

pull/17/head
thomascube 12 years ago committed by Aleksander Machniak
parent 60d9c79f91
commit be160b9da2

@ -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');

Loading…
Cancel
Save