Skip to content

Commit f774e72

Browse files
committed
change to local function instead of prototype
1 parent 3967101 commit f774e72

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/_http_agent.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -206,13 +206,13 @@ Agent.prototype.createSocket = function createSocket(req, options, cb) {
206206
}
207207
self.sockets[name].push(s);
208208
debug('sockets', name, self.sockets[name].length);
209-
self._installListeners(s,options);
209+
installListeners(self, s, options);
210210
cb(null, s);
211211
}
212212
};
213213

214-
Agent.prototype._installListeners = function installListeners(s, options) {
215-
var self = this;
214+
function installListeners(agent, s, options) {
215+
var self = agent;
216216

217217
function onFree() {
218218
debug('CLIENT socket onFree');

0 commit comments

Comments
 (0)