diff options
author | 2021-09-23 17:40:25 -0700 | |
---|---|---|
committer | 2021-09-23 17:40:25 -0700 | |
commit | 8150b9aebab5c63df738fa1fca6c931cc60f5746 (patch) | |
tree | e18188e1920b904ff28b381a9972f37055ce2292 | |
parent | 01601fc8a7e609f1e88188f862e7f0c165624413 (diff) | |
download | bun-8150b9aebab5c63df738fa1fca6c931cc60f5746.tar.gz bun-8150b9aebab5c63df738fa1fca6c931cc60f5746.tar.zst bun-8150b9aebab5c63df738fa1fca6c931cc60f5746.zip |
Fix crash when loading JS fails really quickly
-rw-r--r-- | src/router.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/router.zig b/src/router.zig index 40767a644..16e947248 100644 --- a/src/router.zig +++ b/src/router.zig @@ -713,7 +713,7 @@ pub fn match(app: *Router, server: anytype, comptime RequestContextType: type, c }; } - if (!ctx.controlled) { + if (!ctx.controlled and !ctx.has_called_done) { try ctx.handleRequest(); } } |