mirror of
https://github.com/denoland/deno.git
synced 2024-11-21 15:04:11 -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.#server.ref();
|
||||||
}
|
}
|
||||||
this.#unref = false;
|
this.#unref = false;
|
||||||
|
|
||||||
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
unref() {
|
unref() {
|
||||||
|
@ -1809,6 +1811,8 @@ export class ServerImpl extends EventEmitter {
|
||||||
this.#server.unref();
|
this.#server.unref();
|
||||||
}
|
}
|
||||||
this.#unref = true;
|
this.#unref = true;
|
||||||
|
|
||||||
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
close(cb?: (err?: Error) => void): this {
|
close(cb?: (err?: Error) => void): this {
|
||||||
|
|
Loading…
Reference in a new issue