fix reconnect, make irc.end
This commit is contained in:
parent
809b9be4e4
commit
32cee7464f
1
irc.go
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)
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user