LearnBoost/socket.io-client — pull request #321 by jscharlach (2011-10-24 16:29:23+00:00)
Title: Checking connection state prior to resetting close timeout

Adding a check to the close timeout reset so that it won't reset the timeout for a closed connection. This is necessary because the server sends a 'disconnect' message after the client runs a socket.disconnect() which causes the client to reset the close timeout and effectively hang until the the timeout occurs.