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 b25129a commit 52aec8a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/HMRServer.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 52aec8a

Please sign in to comment.