From 94a325fcbc41023ba6183319cc4c22bd8c6ec7df Mon Sep 17 00:00:00 2001 From: Froxcey Date: Tue, 26 Mar 2024 13:52:12 +0800 Subject: [PATCH] Cli: Fix bad code Silly me, made some dumb mistakes. Welp, here's a commmit to fix all of that! --- cli/commands/server.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cli/commands/server.zig b/cli/commands/server.zig index 915677d..cb195ef 100644 --- a/cli/commands/server.zig +++ b/cli/commands/server.zig @@ -104,7 +104,7 @@ pub fn run( // HACK: This currenly doesn't restart the server when it exits, maybe that // could be implemented in the future. - awaitFileChange(allocator, cwd, mtime); + try awaitFileChange(allocator, cwd, &mtime); std.debug.print("Changes detected, restarting server...\n", .{}); _ = try process.kill(); }