Skip to content
This repository has been archived by the owner on Jan 11, 2023. It is now read-only.

ensure old server is killed before listening for port on new server #129

Merged
merged 1 commit into from
Feb 20, 2018

Conversation

Rich-Harris
Copy link
Member

This fixes an awkward race condition in which sapper dev would listen for a port to be open, find that it was, and send an HMR update before the invalidated server had shut down, meaning that the client would open a connection (to get the hot update) that was immediately closed by the server being killed.

HMR appears to work much more reliably now.

@Rich-Harris Rich-Harris merged commit edba45b into master Feb 20, 2018
@Rich-Harris Rich-Harris deleted the robustify-hmr branch February 20, 2018 17:18
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant