mirror of
https://github.com/fluffle/goirc
synced 2025-06-13 18:23:20 +00:00
Give each handler its own copy of *Line.
Thanks to Kevin Ballard for the suggestion.
This commit is contained in:
parent
8ae6733942
commit
06a9cb5d0f
1 changed files with 1 additions and 1 deletions
|
@ -122,7 +122,7 @@ func (hs *hSet) dispatch(conn *Conn, line *Line) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
for hn := list.start; hn != nil; hn = hn.next {
|
for hn := list.start; hn != nil; hn = hn.next {
|
||||||
go hn.Handle(conn, line)
|
go hn.Handle(conn, line.Copy())
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue