From 8902ee040d8884ca4bd95345896a5e610af6e8f2 Mon Sep 17 00:00:00 2001 From: Jeremy Latt Date: Thu, 13 Feb 2014 19:41:51 -0800 Subject: [PATCH] more logging; check client for each reply --- irc/client.go | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/irc/client.go b/irc/client.go index 4c4238b5..a3e254b1 100644 --- a/irc/client.go +++ b/irc/client.go @@ -127,7 +127,7 @@ func (client *Client) Destroy() { } if DEBUG_CLIENT { - log.Printf("%s destroy", client) + log.Printf("%s.Destroy", client) } client.destroyed = true @@ -153,13 +153,13 @@ func (client *Client) Destroy() { } func (client *Client) Reply(replies ...Reply) { - if client.destroyed { - if DEBUG_CLIENT { - log.Printf("%s.Reply: destroyed", client) - } - return - } for _, reply := range replies { + if client.destroyed { + if DEBUG_CLIENT { + log.Printf("%s.Reply: destroyed: %s", client, reply) + } + break + } client.replies <- reply } }