mirror of https://github.com/fluffle/goirc
17e5216144
* due to the blocking nature of channel reads, by the time the runLoop() for loop exits in that goroutine, we might well be half-way through reconnecting to the server -- a bad time to run conn.initialise(). move the call to initialise() into shutdown() to ensure it happens in a timely manner. * On a related note, conn.Me was retaining old channel objects in it's Channels map. All other references to nicks and channels are erased in conn.initialise(), but as we keep a seperate reference to our Nick object in conn.Me, we need to reinit that at the same time. |
||
---|---|---|
.. | ||
Makefile | ||
commands.go | ||
connection.go | ||
handlers.go | ||
irc_test.go | ||
nickchan.go |