From 7e76ae50407f5fbf40cbceb7fb9124725ed8761a Mon Sep 17 00:00:00 2001 From: Dan Mills Date: Thu, 31 Jul 2008 00:20:55 -0700 Subject: [PATCH] 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 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/services/sync/modules/engines.js b/services/sync/modules/engines.js index cbbf9c0c5446..b4f4062f1e7c 100644 --- a/services/sync/modules/engines.js +++ b/services/sync/modules/engines.js @@ -314,7 +314,9 @@ SyncEngine.prototype = { 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;