Merge pull request #91 from ugjka/master

make other threads exit if there's an error in one
This commit is contained in:
Thomas Jager 2016-11-26 18:48:35 +01:00 committed by GitHub
commit cfd5535e09

1
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)