Permalink
Browse files

Merge pull request #94 from markstreich/patch-1

Resolve a crash in LR for Windows
  • Loading branch information...
2 parents 5a0cf12 + c14212a commit 6340a17105b2a40f917a379b0c5241ab0c9b3fea @andreyvit andreyvit committed Apr 6, 2015
Showing with 2 additions and 3 deletions.
  1. +2 −3 node_modules/livereload-server/lib/connection.coffee
@@ -26,9 +26,8 @@ class LRWebSocketConnection extends EventEmitter
(clearTimeout @_handshakeTimeout; @_handshakeTimeout = null) if @_handshakeTimeout
@emit 'disconnected'
- # @socket.on 'error', =>
- # @socket.close()
- # @emit 'error', err
+ @socket.on 'error', (err) =>
+ console.error(err);
@parser.on 'error', (err) =>
@socket.close()

0 comments on commit 6340a17

Please sign in to comment.