We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 84ade59 commit 31ea527Copy full SHA for 31ea527
lib/Local.js
@@ -18,6 +18,9 @@ function Local(){
18
this.doneRegex = /Press Ctrl-C to exit/i;
19
20
this.start = function(options, callback){
21
+ if(typeof callback !== 'function')
22
+ callback = function(){};
23
+
24
this.userArgs = [];
25
var that = this;
26
this.addArgs(options);
@@ -104,6 +107,9 @@ function Local(){
104
107
};
105
108
106
109
this.stop = function (callback) {
110
111
112
113
if(!this.pid) return callback();
114
this.opcode = 'stop';
115
this.tunnel = childProcess.execFile(this.binaryPath, this.getBinaryArgs(), function(error){
0 commit comments