Permalink
Browse files

more namey name for connections indexes

  • Loading branch information...
timoxley committed Mar 17, 2012
1 parent 2e1adc2 commit 45a98186ffcdabc9b8d5dabd4ead94a1b259fdc8
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/server.js
View
@@ -46,8 +46,8 @@ Server.prototype.listen = function(host, callback) {
_(this).extend(wrappedAPI)
self.connections.push(connection)
connection.once('end', function() {
- var index = self.connections.indexOf(connection)
- self.connections.splice(index, 1)
+ var connectionIndex = self.connections.indexOf(connection)
+ self.connections.splice(connectionIndex, 1)
self.emit('disconnect', connection)
})
connection.once('ready', function() {

0 comments on commit 45a9818

Please sign in to comment.