Remove irc client from session when the connection dies
This commit is contained in:
parent
b687c13baa
commit
65b3aac977
@ -15,6 +15,7 @@ func handleMessages(irc *IRC, session *Session) {
|
|||||||
for {
|
for {
|
||||||
msg, ok := <-irc.Messages
|
msg, ok := <-irc.Messages
|
||||||
if !ok {
|
if !ok {
|
||||||
|
session.deleteIRC(irc.Host)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user