ergochat / irc-go

Libraries to help with IRC development in Go.
ISC License
41 stars 6 forks source link

Reconnect() should interrupt ReconnectFreq delay #79

Closed slingamn closed 2 years ago

slingamn commented 2 years ago

Explicitly calling Reconnect() should interrupt this sleep (i.e. it should be a select on a time.Timer and another channel instead of a sleep):

https://github.com/ergochat/irc-go/blob/06bd7531a403fe67edd5cf6669c88468d0fe70ef/ircevent/irc.go#L288