feat:when client is killded, kill debugging process
This commit is contained in:
parent
88dc9c9334
commit
2e678b1231
@ -53,7 +53,7 @@ export async function createServer() {
|
|||||||
} else if (resultObject.type === "C2D") {
|
} else if (resultObject.type === "C2D") {
|
||||||
if (resultObject.cmd === "DEBUG_STOP") {
|
if (resultObject.cmd === "DEBUG_STOP") {
|
||||||
client = undefined;
|
client = undefined;
|
||||||
debugProcess?.kill(0);
|
debugProcess?.kill("SIGABRT");
|
||||||
}
|
}
|
||||||
if (client === undefined) {
|
if (client === undefined) {
|
||||||
client = ws;
|
client = ws;
|
||||||
@ -141,6 +141,7 @@ export async function createServer() {
|
|||||||
type: "S2D",
|
type: "S2D",
|
||||||
cmd: "DEBUG_STOP"
|
cmd: "DEBUG_STOP"
|
||||||
} as MSG));
|
} as MSG));
|
||||||
|
debugProcess?.kill("SIGABRT");
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
ws.on('error', function (code: number) {
|
ws.on('error', function (code: number) {
|
||||||
|
Reference in New Issue
Block a user