From c57ab16c15d2549eaa837f68326ed905dff9b091 Mon Sep 17 00:00:00 2001 From: James Sansbury Date: Mon, 6 Mar 2023 17:23:04 -0500 Subject: [PATCH] fix: call args.callback() in exec.inspect() #717 --- lib/exec.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/exec.js b/lib/exec.js index e2714af..953b6c0 100644 --- a/lib/exec.js +++ b/lib/exec.js @@ -129,7 +129,7 @@ Exec.prototype.inspect = function(opts, callback) { }); } else { this.modem.dial(optsf, function(err, data) { - if (err) return callback(err, data); + if (err) return args.callback(err, data); args.callback(err, data); }); }