nginx #2
1 changed files with 3 additions and 1 deletions
|
@ -60,7 +60,9 @@ export function loop_process(
|
||||||
const kill_sig = channel<"kill">();
|
const kill_sig = channel<"kill">();
|
||||||
kill_sig.receive().then(() => {
|
kill_sig.receive().then(() => {
|
||||||
control.do_continue = false;
|
control.do_continue = false;
|
||||||
control.child_process?.kill();
|
try {
|
||||||
|
control.child_process?.kill();
|
||||||
|
} catch (_) { /* isok */ }
|
||||||
});
|
});
|
||||||
async function launch() {
|
async function launch() {
|
||||||
while (control.do_continue) {
|
while (control.do_continue) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue