Skip to content
This repository was archived by the owner on Dec 13, 2023. It is now read-only.

Commit 524e5f5

Browse files
author
warner
committed
actually use callback in stop
1 parent 66264f6 commit 524e5f5

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tunnel_start.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -408,9 +408,11 @@ module.exports = {
408408
stop: function(cb){
409409
if(!_.isNull(cbts)){
410410
cbts.endWrap(cb);
411-
cbts = null
411+
cbts = null;
412+
cb(null,true);
412413
}else{
413414
warn('You must start the tunnel first by calling the function "start" with the relevant parameters.');
415+
cb(new Error('Tunnel is not started!'));
414416
}
415417
},
416418
status: function(){

0 commit comments

Comments
 (0)