Prevent terminal window from showing when using ping on Windows (#2152)

pull/2173/head
Sympatron GmbH 2 years ago committed by GitHub
parent afbc283423
commit f1a9046193
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -105,7 +105,7 @@ Ping.prototype.send = function (callback) {
let _exited;
let _errored;
this._ping = spawn(this._bin, this._args); // spawn the binary
this._ping = spawn(this._bin, this._args, { windowsHide: true }); // spawn the binary
this._ping.on("error", function (err) { // handle binary errors
_errored = true;

Loading…
Cancel
Save