1
0
mirror of https://github.com/moparisthebest/mail synced 2025-02-07 02:20:14 -05:00

[WO-428] add missing busy() call to plain text sending and encryption

This commit is contained in:
Felix Hammerl 2014-07-11 15:22:34 +02:00
parent 6d2896a70c
commit 1d0a1f9a79

View File

@ -1004,7 +1004,7 @@ define(function(require) {
}); });
return; return;
} }
self.busy();
// mime encode, sign and send email via smtp // mime encode, sign and send email via smtp
self._pgpMailer.send({ self._pgpMailer.send({
smtpclient: options.smtpclient, // filled solely in the integration test, undefined in normal usage smtpclient: options.smtpclient, // filled solely in the integration test, undefined in normal usage
@ -1022,7 +1022,14 @@ define(function(require) {
* @param {Function} callback(error, message) Invoked when the message was encrypted, or an error occurred * @param {Function} callback(error, message) Invoked when the message was encrypted, or an error occurred
*/ */
EmailDAO.prototype.encrypt = function(options, callback) { EmailDAO.prototype.encrypt = function(options, callback) {
this._pgpbuilder.encrypt(options, callback); var self = this;
self.busy();
self._pgpbuilder.encrypt(options, function(err) {
self.done();
callback(err);
});
}; };