summaryrefslogtreecommitdiff
path: root/ext/http/http_next.rs
diff options
context:
space:
mode:
Diffstat (limited to 'ext/http/http_next.rs')
-rw-r--r--ext/http/http_next.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/ext/http/http_next.rs b/ext/http/http_next.rs
index 880925603..90f7f0b1d 100644
--- a/ext/http/http_next.rs
+++ b/ext/http/http_next.rs
@@ -1105,7 +1105,10 @@ pub async fn op_http_close(
.take::<HttpJoinHandle>(rid)?;
if graceful {
- deno_net::check_unstable2(&state, "Deno.Server.shutdown");
+ state
+ .borrow()
+ .feature_checker
+ .check_legacy_unstable_or_exit("Deno.Server.shutdown");
// In a graceful shutdown, we close the listener and allow all the remaining connections to drain
join_handle.listen_cancel_handle().cancel();
} else {