Fix decrypt error handling

This rejection-handler was resolving its promise rather than allowing
the rejection to bubble up.
pull/749/head
lilia 10 years ago
parent f8ae5556d9
commit 66ae3689c1

@ -39595,6 +39595,7 @@ function generateKeys(count, progressCallback) {
ev.error = error;
ev.proto = envelope;
this.target.dispatchEvent(ev);
throw error; // reject this promise
}.bind(this));
},
handleSentMessage: function(destination, timestamp, message) {

@ -99,6 +99,7 @@
ev.error = error;
ev.proto = envelope;
this.target.dispatchEvent(ev);
throw error; // reject this promise
}.bind(this));
},
handleSentMessage: function(destination, timestamp, message) {

Loading…
Cancel
Save