mirror of
https://github.com/denoland/deno.git
synced 2024-11-21 20:38:55 +00: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
@ -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 New Issue
Block a user