Skip to content

Commit

Permalink
Merge pull request #41 from cloudflare/bugfix/deadlock
Browse files Browse the repository at this point in the history
Fix for #40: change the position of the channel
  • Loading branch information
lspgn authored Sep 30, 2019
2 parents b521287 + 7719533 commit 610850e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions decoders/decoder.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,11 @@ func (w Worker) Start() {
go func() {
//log.Debugf("Worker %v started", w.Id)
for {
w.WorkerPool <- w.InMsg
select {
case <-w.Quit:
break
case msg := <-w.InMsg:
case w.WorkerPool <- w.InMsg:
msg := <-w.InMsg
timeTrackStart := time.Now()
err := w.DecoderParams.DecoderFunc(msg)
timeTrackStop := time.Now()
Expand Down

0 comments on commit 610850e

Please sign in to comment.