Terminal: Fix error in connection establishment: net::ERR_CONNECTION_REFUSED #322
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Successfully reproducing this bug:
![image](https://user-images.githubusercontent.com/43995067/86306609-4d12d080-bc47-11ea-8cff-e2c30301ecec.png)
When having this situation, you can still access the terminal by click the right button of the mouse, in the menu clicking
reload
, and then everything works fine.So I believe this bug is caused by loading the web page too early , and I made a exception handling, when this happens, refresh the page automaticly after 1 second, and that bug never happens again.