mirror of
https://github.com/denoland/deno.git
synced 2024-12-21 23:04:45 -05:00
fix(ext/node): return this
from http.Server.ref/unref()
(#26647)
Fixes https://github.com/denoland/deno/issues/26642
This commit is contained in:
parent
5f5ac40631
commit
a346071dd2
1 changed files with 4 additions and 0 deletions
|
@ -1802,6 +1802,8 @@ export class ServerImpl extends EventEmitter {
|
|||
this.#server.ref();
|
||||
}
|
||||
this.#unref = false;
|
||||
|
||||
return this;
|
||||
}
|
||||
|
||||
unref() {
|
||||
|
@ -1809,6 +1811,8 @@ export class ServerImpl extends EventEmitter {
|
|||
this.#server.unref();
|
||||
}
|
||||
this.#unref = true;
|
||||
|
||||
return this;
|
||||
}
|
||||
|
||||
close(cb?: (err?: Error) => void): this {
|
||||
|
|
Loading…
Reference in a new issue