add a hack that supresses a strange error (this._remote.status.data is null, even though it was downloaded correctly)
authorDan Mills <thunder@mozilla.com>
Thu, 31 Jul 2008 00:20:55 -0700
changeset 44978 e01a7acfd412be4d5c4f3b0a7b875416304528c2
parent 44976 ad48060fd1b390214730bb14abcd20ceafe9ef0e
child 44979 ef85392cc4cf85b1b3ea3de0b3b4e2846dee635a
push idunknown
push userunknown
push dateunknown
add a hack that supresses a strange error (this._remote.status.data is null, even though it was downloaded correctly)
services/sync/modules/engines.js
--- a/services/sync/modules/engines.js
+++ b/services/sync/modules/engines.js
@@ -309,17 +309,19 @@ SyncEngine.prototype = {
     let self = yield;
 
     this._log.info("Beginning sync");
     this._os.notifyObservers(null, "weave:service:sync:engine:start", this.displayName);
 
     this._snapshot.load();
 
     try {
+      this._remote.status.data; // FIXME - otherwise we get an error...
       yield this._remote.openSession(self.cb, this._snapshot);
+
     } catch (e if e.status == 404) {
       yield this._initialUpload.async(this, self.cb);
       return;
     }
 
     if (this._remote.status.data.GUID != this._snapshot.GUID) {
       this._log.debug("Remote/local sync GUIDs do not match.  " +
                      "Forcing initial sync.");