fix full (first) upload brokenness
authorDan Mills <thunder@mozilla.com>
Fri, 07 Mar 2008 04:49:56 -0800
changeset 44367 e206c07082431b6b405c96462b6a0149a1c000fe
parent 44366 7accea66ae35d7b94984d5d94aead74a84616eb8
child 44368 fb70ea388fd8c2fc7c6a18d4d1222b40613d82d2
child 44408 6e80624828e7d0c019eae6e2a7be6218bda8ee58
push id1
push userroot
push dateTue, 26 Apr 2011 22:38:44 +0000
treeherdermozilla-beta@bfdb6e623a36 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
fix full (first) upload brokenness
services/sync/modules/engines.js
--- a/services/sync/modules/engines.js
+++ b/services/sync/modules/engines.js
@@ -654,21 +654,20 @@ Engine.prototype = {
 
     self.done(ret)
   },
 
   _fullUpload: function Engine__fullUpload() {
     let self = yield;
     let ret = false;
 
-    let gen = Crypto.PBEencrypt.async(Crypto, self.cb,
-                                      this._snapshot.serialize(),
-      		                this._cryptoId);
+    Crypto.PBEencrypt.async(Crypto, self.cb,
+                            this._snapshot.serialize(),
+      		            this._cryptoId);
     let data = yield;
-    if (gen.failed) throw "Encryption failed.";
       
     this._dav.PUT(this.snapshotFile, data, self.cb);
     resp = yield;
     Utils.ensureStatus(resp.status, "Could not upload snapshot.");
 
     this._dav.PUT(this.deltasFile, "[]", self.cb);
     resp = yield;
     Utils.ensureStatus(resp.status, "Could not upload deltas.");