Skip to content

Commit

Permalink
manager: fix for latest node which is returning a clone with `listene…
Browse files Browse the repository at this point in the history
…rs` [viirya]
  • Loading branch information
rauchg committed Dec 13, 2012
1 parent 3b7224c commit 0d3313f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/manager.js
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ function Manager (server, options) {

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

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

0 comments on commit 0d3313f

Please sign in to comment.