1
0
Fork 0
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:
Nathan Whitaker 2024-10-30 13:13:32 -07:00 committed by GitHub
parent 5f5ac40631
commit a346071dd2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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 {