Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a1a88aa

Browse files
committed
Merge pull request socketio#1600 from poldridge/master
Update index.js
2 parents 99bbd74 + 3f817c3 commit a1a88aa

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/index.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,9 @@ Server.prototype.adapter = function(v){
159159
if (!arguments.length) return this._adapter;
160160
this._adapter = v;
161161
for (var i in this.nsps) {
162-
this.nsps[i].initAdapter();
162+
if (this.nsps[i].hasOwnProperty(i)) {
163+
this.nsps[i].initAdapter();
164+
}
163165
}
164166
return this;
165167
};

0 commit comments

Comments
 (0)