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
1 changed files with 1 additions and 1 deletions

View File

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