diff options
author | 2023-05-11 15:10:40 -0700 | |
---|---|---|
committer | 2023-05-11 15:10:40 -0700 | |
commit | 56b8458c62228f60b9b845acf5ba9df90d9cef32 (patch) | |
tree | c32c9fda119bcbda9f0e744134a73a3a5664a5cb | |
parent | 7141e19a101d3afc22226bbde2a7630f939a7ee1 (diff) | |
download | bun-56b8458c62228f60b9b845acf5ba9df90d9cef32.tar.gz bun-56b8458c62228f60b9b845acf5ba9df90d9cef32.tar.zst bun-56b8458c62228f60b9b845acf5ba9df90d9cef32.zip |
call stop before emit
-rw-r--r-- | src/bun.js/http.exports.js | 2 |
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() { |