Remove irc client from session when the connection dies
This commit is contained in:
parent
b687c13baa
commit
65b3aac977
1 changed files with 1 additions and 0 deletions
|
@ -15,6 +15,7 @@ func handleMessages(irc *IRC, session *Session) {
|
|||
for {
|
||||
msg, ok := <-irc.Messages
|
||||
if !ok {
|
||||
session.deleteIRC(irc.Host)
|
||||
return
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue