Skip to content
This repository has been archived by the owner on Jan 15, 2022. It is now read-only.

Commit

Permalink
Update queue.go
Browse files Browse the repository at this point in the history
  • Loading branch information
wolfy-j authored Feb 12, 2019
1 parent 14df7a3 commit eb7519b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions broker/ephemeral/queue.go
Original file line number Diff line number Diff line change
Expand Up @@ -129,10 +129,11 @@ func (q *queue) stop() {

atomic.StoreInt32(&q.active, 0)

close(q.wait)
q.muw.Lock()
q.wg.Wait()
close(q.wait)
q.muw.Unlock()

q.wg.Wait()
}

// add job to the queue
Expand Down

0 comments on commit eb7519b

Please sign in to comment.