fix incorrect handling of closure

This commit is contained in:
Dali Zheng 2017-08-19 16:37:47 -06:00
parent 15296cae94
commit aec9d98e4d
1 changed files with 2 additions and 1 deletions

View File

@ -35,10 +35,11 @@ module.exports.create = function (opts) {
return;
}
var err = new Error("___MESSAGE___");
process.send({ type: 'LE_REQUEST', domain: domain, options: results.options, certs: results.certs });
process.on('message', function (msg) {
var err = new Error("___MESSAGE___");
log(opts.debug, 'Message from master');
log(opts.debug, msg);