add a hack that supresses a strange error (this._remote.status.data is null, even though it was downloaded correctly)

This commit is contained in:
Dan Mills 2008-07-31 00:20:55 -07:00
parent 3fc5d0e8a1
commit 010357f05a

View File

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