Skip to content

Commit 85980de

Browse files
committed
Merge pull request #16 from cezarsa/master
Fix data race by waiting for Handler using server's WaitGroup
2 parents 18aee50 + 600466b commit 85980de

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ func (s *Server) parser(line []byte, client string) {
202202
logParts := parser.Dump()
203203
logParts["client"] = client
204204

205-
go s.handler.Handle(logParts, int64(len(line)), err)
205+
s.handler.Handle(logParts, int64(len(line)), err)
206206
}
207207

208208
//Returns the last error

0 commit comments

Comments
 (0)