mirror of
https://github.com/jeremyd/ergo.git
synced 2026-07-03 15:23:37 -07:00
don't allow send on closed channels
This commit is contained in:
+1
-1
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user