diff options
author | 2022-11-09 23:42:36 -0800 | |
---|---|---|
committer | 2022-11-09 23:42:36 -0800 | |
commit | 2149e1f0a095d5a4854f0ec7a2b638a3146e388f (patch) | |
tree | e236b852592a53aa37cd17a49721f025a3b0c5f7 | |
parent | c52ebd96ba5d0b695a4b7a27071815a96d1f568f (diff) | |
download | bun-2149e1f0a095d5a4854f0ec7a2b638a3146e388f.tar.gz bun-2149e1f0a095d5a4854f0ec7a2b638a3146e388f.tar.zst bun-2149e1f0a095d5a4854f0ec7a2b638a3146e388f.zip |
Update server.zig
-rw-r--r-- | src/bun.js/api/server.zig | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/bun.js/api/server.zig b/src/bun.js/api/server.zig index 29156169b..2ada0aef2 100644 --- a/src/bun.js/api/server.zig +++ b/src/bun.js/api/server.zig @@ -4038,6 +4038,7 @@ pub fn NewServer(comptime ssl_enabled_: bool, comptime debug_mode_: bool) type { } pub fn finalize(this: *ThisServer) void { + httplog("finalize", .{}); this.has_js_deinited = true; this.deinitIfWeCan(); } @@ -4052,6 +4053,7 @@ pub fn NewServer(comptime ssl_enabled_: bool, comptime debug_mode_: bool) type { } pub fn deinitIfWeCan(this: *ThisServer) void { + httplog("deinitIfWeCan", .{}); if (this.pending_requests == 0 and this.listener == null and this.has_js_deinited and !this.hasActiveWebSockets()) { if (this.config.websocket) |*ws| { ws.handler.app = null; @@ -4074,6 +4076,7 @@ pub fn NewServer(comptime ssl_enabled_: bool, comptime debug_mode_: bool) type { } pub fn deinit(this: *ThisServer) void { + httplog("deinit", .{}); this.app.destroy(); const allocator = this.allocator; allocator.destroy(this); |