Bug 1326443 -
Bug 1292569/
bug 1294960 follow-up: Change return to yield in generator. r=jorgk a=jorgk DONTBUILD
--- a/mail/components/im/modules/index_im.js
+++ b/mail/components/im/modules/index_im.js
@@ -636,18 +636,20 @@ var GlodaIMIndexer = {
this._indexingJobPromise = null;
aJob.conversation.indexPending = false;
aJob.conversation.glodaConv = glodaConv.value;
yield Gloda.kWorkDone;
},
_worker_logsFolderSweep: function*(aJob) {
let dir = FileUtils.getFile("ProfD", ["logs"]);
- if (!dir.exists() || !dir.isDirectory())
- return;
+ if (!dir.exists() || !dir.isDirectory()) {
+ // If the folder does not exist, then we are done.
+ yield GlodaIndexer.kWorkDone;
+ }
// Sweep the logs directory for log files, adding any new entries to the
// _knownFiles tree as we traverse.
let children = dir.directoryEntries;
while (children.hasMoreElements()) {
let proto = children.getNext().QueryInterface(Ci.nsIFile);
if (!proto.isDirectory())
continue;