Permalink
Browse files

Fix leak in socket proxied watchers

  • Loading branch information...
creationix committed Jun 11, 2012
1 parent 21b673d commit 7b52cc05aca8cc8c866a7fc0f2f62d7ab47c1aa9
Showing with 1 addition and 0 deletions.
  1. +1 −0 socket/consumer.js
View
@@ -93,6 +93,7 @@ function Consumer() {
proxyWatchers[id] = watcher;
watcher.close = function () {
remote.close(id);
+ delete proxyWatchers[id];
};
return watcher;
}

0 comments on commit 7b52cc0

Please sign in to comment.