pkyeck/socket.IO-objc — pull request #109 by psineur (2013-06-13 01:33:56+00:00)
Title: Fix crash on disconnect & deallocation

Hi!

In my project I got crashes in -onData: and timer callbacks in SocketIO.m after I called -disconnect on it & released the socket.

I fixed it fo myself by these patches, looks like the main thing was that -onDisconnect: was never called if you're using -disconnect

Hope it helps.
If you want something be made differently - I would love to update the pull request.

Thanks!

P.S.
Now I see that this may look as part of #106, although I haven't experienced flood and simple fixed the crashes.