1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2025-01-08 23:28:18 -05:00

add debug log

This commit is contained in:
Yoshiya Hinosawa 2024-11-18 23:35:36 +09:00
parent 25a9c93745
commit 80ab756969
No known key found for this signature in database
GPG key ID: 9017DB4559488785

View file

@ -297,12 +297,14 @@ export class LibuvStreamWrap extends HandleWrap {
} }
override _onClose(): number { override _onClose(): number {
console.log("LibuvStreamWrap.prototype._onClose");
let status = 0; let status = 0;
this.#reading = false; this.#reading = false;
try { try {
this[kStreamBaseField]?.close(); this[kStreamBaseField]?.close();
} catch { } catch (e) {
console.log(e);
status = codeMap.get("ENOTCONN")!; status = codeMap.get("ENOTCONN")!;
} }