Skip to content

Commit

Permalink
chore: revert changes to untouched file
Browse files Browse the repository at this point in the history
  • Loading branch information
jplhomer committed Aug 16, 2021
1 parent 5d3fcab commit 0afad18
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/vite/src/node/server/hmr.ts
Expand Up @@ -461,15 +461,15 @@ async function restartServer(server: ViteDevServer) {
// @ts-ignore
global.__vite_start_time = Date.now()
const { port } = server.config.server

await server.close()

let newServer = null
try {
newServer = await createServer(server.config.inlineConfig)
} catch (err) {
server.config.logger.error(err.message, {
timestamp: true
timestamp: true,
})
return
}
Expand Down

0 comments on commit 0afad18

Please sign in to comment.