Skip to content

Commit

Permalink
Merge pull request socketio#841 from TooTallNate/master
Browse files Browse the repository at this point in the history
fix for EventEmitters always reusing the same Array instance for listeners
  • Loading branch information
rauchg committed Apr 19, 2012
2 parents 0242a2d + e188485 commit 2024d45
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/manager.js
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,7 @@ function Manager (server, options) {
});

// reset listeners
this.oldListeners = server.listeners('request');
server.removeAllListeners('request');
this.oldListeners = server.listeners('request').splice(0);

server.on('request', function (req, res) {
self.handleRequest(req, res);
Expand Down

0 comments on commit 2024d45

Please sign in to comment.