Skip to content

Commit

Permalink
fixed bug causing a deadlock due to sending on a nil channel if a per…
Browse files Browse the repository at this point in the history
…sisted queue was restored and more than 1 lane was in use
  • Loading branch information
realtux committed Apr 21, 2017
1 parent c94551f commit b488541
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/dispenserd/persist.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,8 @@ func LoadQueue() {

if !ok {
indexes[current_lane] = make(map[uint]uint64)
listeners[current_lane] = make(chan int)
idle_workers[current_lane] = 0
}
}

Expand Down

0 comments on commit b488541

Please sign in to comment.