1
0
Fork 0
mirror of https://github.com/fluffle/goirc synced 2025-05-12 18:44:50 +00:00

Give each handler its own copy of *Line.

Thanks to Kevin Ballard for the suggestion.
This commit is contained in:
Alex Bramley 2013-04-08 18:04:40 +01:00
parent 8ae6733942
commit 06a9cb5d0f

View file

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