diff --git a/irc.go b/irc.go index 3b99bbd..7820759 100644 --- a/irc.go +++ b/irc.go @@ -198,6 +198,7 @@ func (irc *Connection) Loop() { errChan := irc.ErrorChan() for !irc.isQuitting() { err := <-errChan + close(irc.end) irc.Wait() for !irc.isQuitting() { irc.Log.Printf("Error, disconnected: %s\n", err)