This commit is contained in:
Benjamin Toby
2025-02-21 09:00:49 +01:00
parent 7d71316b2c
commit 4540404522
15 changed files with 103 additions and 43 deletions
+2 -2
View File
@@ -31,11 +31,11 @@ function killChild(childProcess, port) {
if (typeof port == "object" && (port === null || port === void 0 ? void 0 : port[0])) {
for (let i = 0; i < port.length; i++) {
const singlePort = port[i];
yield (0, kill_port_1.default)(Number(singlePort));
yield (0, kill_port_1.default)(Number(singlePort), "tcp");
}
}
else if (port) {
yield (0, kill_port_1.default)(Number(port));
yield (0, kill_port_1.default)(Number(port), "tcp");
}
}
catch (error) { }