Automattic/socket.io — pull request #1563 by rase- (2014-05-30 23:27:27+00:00)
Title: Fix namespace iterator in disconnect

Since `socket.onclose` is going to remove things from `this.sockets` while iterating, let's make the iteration tolerant of these modifications.

Addresses https://github.com/Automattic/socket.io/issues/1539.