Skip to content

Commit 58b1c29

Browse files
committed
Add early return
1 parent 503128e commit 58b1c29

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/next/src/client/dev/error-overlay/websocket.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ export function connectHMR(options: { path: string; assetPrefix: string }) {
5454
// After 25 reconnects we'll want to reload the page as it indicates the dev server is no longer running.
5555
if (reconnections > 25) {
5656
window.location.reload()
57+
return
5758
}
5859

5960
clearTimeout(timer)

0 commit comments

Comments
 (0)