aboutsummaryrefslogtreecommitdiff
path: root/main.ha
diff options
context:
space:
mode:
authorRunxi Yu <me@runxiyu.org>2025-03-15 23:40:22 +0800
committerRunxi Yu <me@runxiyu.org>2025-03-16 00:52:24 +0800
commit2e9373bd12bc972cf6d947ebb871f98967e3b1ae (patch)
treebee868d82383e62d71227737a17396ff45d0d43b /main.ha
parentHare branch is master now (diff)
downloadforge-2e9373bd12bc972cf6d947ebb871f98967e3b1ae.tar.gz
forge-2e9373bd12bc972cf6d947ebb871f98967e3b1ae.tar.zst
forge-2e9373bd12bc972cf6d947ebb871f98967e3b1ae.zip
Close the static_fs
Diffstat (limited to '')
-rw-r--r--main.ha1
1 files changed, 1 insertions, 0 deletions
diff --git a/main.ha b/main.ha
index fc41240..cf2099a 100644
--- a/main.ha
+++ b/main.ha
@@ -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 =>