don't allow send on closed channels

This commit is contained in:
Jeremy Latt
2014-02-13 09:35:59 -08:00
parent ca25828804
commit 7a2c9db503
3 changed files with 17 additions and 1 deletions
+1 -1
View File
@@ -292,7 +292,7 @@ func (m *JoinCommand) HandleServer(s *Server) {
cmd := &PartCommand{}
cmd.SetClient(c)
for channel := range c.channels {
channel.commands <- cmd
channel.Command(cmd)
}
return
}