Bug 612401: could not get engine: clients. r=philiKON a=mconnor
authorRichard Newman <rnewman@mozilla.com>
Tue, 01 Mar 2011 11:35:49 -0800
changeset 63269 1a0094bc7086d77609c5626b726baa5dfe37ac0b
parent 63268 83f06b6f346d14d635a2e02a7d8c8c9b717948e8
child 63270 76784798d9a7424a105caed70eae54cd3b798e8c
push id1
push userroot
push dateTue, 10 Dec 2013 15:46:25 +0000
reviewersphiliKON, mconnor
bugs612401
Bug 612401: could not get engine: clients. r=philiKON a=mconnor
services/sync/modules/service.js
--- a/services/sync/modules/service.js
+++ b/services/sync/modules/service.js
@@ -1856,16 +1856,20 @@ WeaveSvc.prototype = {
       this._log.info("One client and no enabled engines: not touching local engine status.");
       return;
     }
 
     this._ignorePrefObserver = true;
 
     let enabled = [eng.name for each (eng in Engines.getEnabled())];
     for (let engineName in meta.payload.engines) {
+      if (engineName == "clients") {
+        // Clients is special.
+        continue;
+      }
       let index = enabled.indexOf(engineName);
       if (index != -1) {
         // The engine is enabled locally. Nothing to do.
         enabled.splice(index, 1);
         continue;
       }
       let engine = Engines.get(engineName);
       if (!engine) {