Remove irc client from session when the connection dies

This commit is contained in:
Ken-Håvard Lieng 2015-05-31 23:23:05 +02:00
parent b687c13baa
commit 65b3aac977
1 changed files with 1 additions and 0 deletions

View File

@ -15,6 +15,7 @@ func handleMessages(irc *IRC, session *Session) {
for {
msg, ok := <-irc.Messages
if !ok {
session.deleteIRC(irc.Host)
return
}