diff --git a/lib/sauce-connect-launcher.js b/lib/sauce-connect-launcher.js index 6e26c66..dd3d0a6 100644 --- a/lib/sauce-connect-launcher.js +++ b/lib/sauce-connect-launcher.js @@ -180,6 +180,11 @@ function run(options, callback) { }); child.on("exit", function (code, signal) { + // Java exits with code 143 on SIGTERM; this is not an error, it comes from child.close + if (code === 143) { + return; + } + var message = "Closing Sauce Connect Tunnel"; if (code > 0) { message = "Could not start Sauce Connect. Exit code " + code + " signal: " + signal;