Skip to content

Commit

Permalink
Fixes #487
Browse files Browse the repository at this point in the history
  • Loading branch information
apocas committed Oct 29, 2018
1 parent ea00699 commit a41fc41
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/container.js
Original file line number Diff line number Diff line change
Expand Up @@ -774,7 +774,7 @@ Container.prototype.wait = function(opts, callback) {
options: args.opts
};

if(callback === undefined) {
if(args.callback === undefined) {
return new this.modem.Promise(function(resolve, reject) {
self.modem.dial(optsf, function(err, data) {
if (err) {
Expand All @@ -785,7 +785,7 @@ Container.prototype.wait = function(opts, callback) {
});
} else {
this.modem.dial(optsf, function(err, data) {
callback(err, data);
args.callback(err, data);
});
}
};
Expand Down

0 comments on commit a41fc41

Please sign in to comment.