diff options
author | Runxi Yu <me@runxiyu.org> | 2025-03-15 23:40:22 +0800 |
---|---|---|
committer | Runxi Yu <me@runxiyu.org> | 2025-03-16 00:52:24 +0800 |
commit | 2e9373bd12bc972cf6d947ebb871f98967e3b1ae (patch) | |
tree | bee868d82383e62d71227737a17396ff45d0d43b /main.ha | |
parent | Hare branch is master now (diff) | |
download | forge-2e9373bd12bc972cf6d947ebb871f98967e3b1ae.tar.gz forge-2e9373bd12bc972cf6d947ebb871f98967e3b1ae.tar.zst forge-2e9373bd12bc972cf6d947ebb871f98967e3b1ae.zip |
Close the static_fs
Diffstat (limited to 'main.ha')
-rw-r--r-- | main.ha | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -39,6 +39,7 @@ export fn main() void = { }; static_fs = os::diropen("static")!; + defer fs::close(static_fs as *fs::fs); const server = match (http::listen(ip_addr, port, net::tcp::reuseport, net::tcp::reuseaddr)) { case let this: *http::server => |