aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/bun.js/http.exports.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bun.js/http.exports.js b/src/bun.js/http.exports.js
index 8fe1265c5..e6bff65aa 100644
--- a/src/bun.js/http.exports.js
+++ b/src/bun.js/http.exports.js
@@ -244,8 +244,8 @@ export class Server extends EventEmitter {
}
this.#server = undefined;
if (typeof optionalCallback === "function") this.once("close", optionalCallback);
- this.emit("close");
server.stop();
+ this.emit("close");
}
address() {