ericz 12 年之前
父節點
當前提交
6bd6b2460e
共有 1 個文件被更改,包括 4 次插入4 次删除
  1. 4 4
      lib/server.js

+ 4 - 4
lib/server.js

@@ -163,11 +163,11 @@ PeerServer.prototype._checkKey = function(key, ip, cb) {
     if (!this._clients[key]) {
       this._clients[key] = {};
     }
-    if (!self._outstanding[key]) {
-      self._outstanding[key] = {};
+    if (!this._outstanding[key]) {
+      this._outstanding[key] = {};
     }
-    if (!self._ips[ip]) {
-      self._ips[ip] = 0;
+    if (!this._ips[ip]) {
+      this._ips[ip] = 0;
     }
     // Check concurrent limit
     if (Object.keys(this._clients[key]).length >= this._options.concurrent_limit) {