fix: we'll try eliminating the SERVER.shutdown
method and just use
`SERVER.stop` for everything
This commit is contained in:
parent
f63cb933dd
commit
0b5f0c5d5e
2 changed files with 2 additions and 6 deletions
|
@ -92,10 +92,6 @@ export class SERVER {
|
|||
this.handlers = [];
|
||||
}
|
||||
|
||||
private shutdown() {
|
||||
this.controller?.abort();
|
||||
}
|
||||
|
||||
/**
|
||||
* Start the server.
|
||||
*
|
||||
|
@ -181,7 +177,7 @@ export class SERVER {
|
|||
}
|
||||
);
|
||||
|
||||
this.shutdown_binding = this.shutdown.bind(this);
|
||||
this.shutdown_binding = this.stop.bind(this);
|
||||
Deno.addSignalListener('SIGTERM', this.shutdown_binding);
|
||||
Deno.addSignalListener('SIGINT', this.shutdown_binding);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue