mirror of https://github.com/fluffle/goirc
Give each handler its own copy of *Line.
Thanks to Kevin Ballard for the suggestion.
This commit is contained in:
parent
8ae6733942
commit
06a9cb5d0f
|
@ -122,7 +122,7 @@ func (hs *hSet) dispatch(conn *Conn, line *Line) {
|
|||
return
|
||||
}
|
||||
for hn := list.start; hn != nil; hn = hn.next {
|
||||
go hn.Handle(conn, line)
|
||||
go hn.Handle(conn, line.Copy())
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue