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

View File

@ -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
} }