Skip to content

Commit 6403c0e

Browse files
authoredMar 7, 2017
Merge pull request #122 from frederikbosch/patch-1
Call method instead of .apply, fixes #120
2 parents 7b8ed73 + 95a264d commit 6403c0e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎lib/server.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ class Server extends events.EventEmitter {
154154
socket.on('error', (e) => {
155155
// ignore frequent ECONNRESET error (seems inevitable when refresh)
156156
if (e.code === 'ECONNRESET') return;
157-
this.error.apply(this, e);
157+
this.error(e);
158158
});
159159

160160
client.once('info', (data) => {

0 commit comments

Comments
 (0)
Please sign in to comment.