Skip to content

Commit

Permalink
chore(vite): revert comment about closeAllConnections (#21634)
Browse files Browse the repository at this point in the history
  • Loading branch information
puku0x committed Mar 22, 2024
1 parent 1391bc7 commit 54d4780
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ function closeServer(server?: Record<string, any>): Promise<void> {
const { httpServer } = server;
if (httpServer['closeAllConnections']) {
// https://github.com/vitejs/vite/pull/14834
// closeAllConnections was added in Node v19.2.0
// closeAllConnections was added in Node v18.2.0
// typically is "as http.Server" but no reason
// to import http just for this
(httpServer as any).closeAllConnections();
Expand Down

0 comments on commit 54d4780

Please sign in to comment.