Skip to content

Commit

Permalink
Update HMRServer handleSocketError for ErrorEvent (#815)
Browse files Browse the repository at this point in the history
  • Loading branch information
brianchung808 authored and devongovett committed Feb 15, 2018
1 parent 5436ebc commit d85556a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/core/parcel-bundler/src/HMRServer.js
Original file line number Diff line number Diff line change
@@ -81,11 +81,11 @@ class HMRServer {
}

handleSocketError(err) {
if (err.code === 'ECONNRESET') {
if (err.error.code === 'ECONNRESET') {
// This gets triggered on page refresh, ignore this
return;
}
logger.log(err);
logger.warn(err);
}

broadcast(msg) {

0 comments on commit d85556a

Please sign in to comment.