sockethub/sockethub — pull request #170 by michielbdejong (2014-05-29 09:29:49+00:00)
Title: fix https://github.com/michielbdejong/meute/issues/23

I don't fully understand what is going wrong here, but adding a `console.log` statement fixed it for me.

@silverbucket Obviously you don't want the robustness of sockethub to depend on the timing of `console.log` statements, I'm sending you this PR so you can find a real solution :)

The problem is described in https://github.com/michielbdejong/meute/issues/23 - when connecting, registering, setting credentials, joining an room, and saying something on irc, all in immediate succession without waiting in between, sockethub chokes and seems to create two irc clients, one of which it tries to use while it is (still?) undefined.