fix reconnect, make irc.end

This commit is contained in:
soda 2014-06-21 16:46:47 +02:00
parent 809b9be4e4
commit 32cee7464f

1
irc.go

@ -302,6 +302,7 @@ func (irc *Connection) Disconnect() {
// Reconnect to a server using the current connection.
func (irc *Connection) Reconnect() error {
irc.end = make(chan struct{})
return irc.Connect(irc.server)
}