зеркало из https://github.com/mozilla/pjs.git
fix full (first) upload brokenness
This commit is contained in:
Родитель
056dc3d2eb
Коммит
0b431a8016
|
@ -659,11 +659,10 @@ Engine.prototype = {
|
|||
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;
|
||||
|
|
Загрузка…
Ссылка в новой задаче