Fix double close of irc.end channel.

This commit is contained in:
Thomas Jager 2016-12-08 09:29:58 +01:00
parent cfd5535e09
commit 1b0acb5f2f

1
irc.go
View File

@ -358,7 +358,6 @@ func (irc *Connection) Disconnect() {
if irc.socket != nil {
irc.socket.Close()
}
close(irc.end)
irc.ErrorChan() <- ErrDisconnected
}