Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Fix #10821. Allow page reloads, navigating away and back etc. #10822
Fixes multi-browser case only.
Fix #10821: wait for 5 seconds after the last browser has closed connection before shutting down entire LiveDevelopment session.
It's a very simple and robust fix to address page reloads inflicted by
A more sophisticated fix would consist of the remote end (a browser) letting know that the page is being unloaded. However, the only case where it would actually help is when the page is reloaded by the protocol command. It still would be impossible to distinguish intentional navigating away from a reload or navigating away by clicking a link on the page being previewed.