Merge pull request #221 from isocolsky/fix/bcinit

Fix blockchain monitor initialization
This commit is contained in:
Matias Alejo Garcia 2015-05-19 15:31:10 -03:00
commit da3df6449b
1 changed files with 5 additions and 1 deletions

View File

@ -44,9 +44,13 @@ BlockchainMonitor.prototype.start = function(opts, cb) {
},
function(done) {
self.lock = new Lock(opts.lockOpts);
done();
},
], function(err) {
if (err) return cb(err);
if (err) {
log.error(err);
return cb(err);
}
self.emailService = new EmailService({
lock: self.lock,