Skip to content

Commit 78f5a3e

Browse files
committed
fix ref to connection
1 parent d5611ba commit 78f5a3e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/connection.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ function Connection (opts)
114114
util.inherits(Connection, EventEmitter);
115115

116116
Connection.prototype._handleNetworkError = function(err) {
117-
var connection;
117+
var connection = this;
118118
err.fatal = true;
119119
// stop receiving packets
120120
connection.stream.removeAllListeners('data');

0 commit comments

Comments
 (0)