Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const killLSProcess = () => {
treekill.default(lsProcess.pid);
clientConnection.dispose();
};
socket.onclose = killLSProcess;
public shutdown(): void {
if (this.lsProcess) {
treekill.default(this.lsProcess.pid);
}
}
}
const killLSProcess = () => {
treekill.default(lsProcess.pid);
clientConnection.dispose();
};
socket.onclose = killLSProcess;