Skip to content

Commit

Permalink
Merge pull request #239 from yetingsky/bug-fix
Browse files Browse the repository at this point in the history
fix simpleResourcePool numActive
  • Loading branch information
Patrick authored May 1, 2019
2 parents becbb8a + 90c56a0 commit 5749d3b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions resource_pool/simple_resource_pool.go
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,7 @@ func (p *simpleResourcePool) Get(unused string) (ManagedHandle, error) {
} else {
// We could not immediately acquire a token.
// Instead of waiting
atomic.AddInt32(p.numActive, -1)
return nil, OpenHandleError{
p.location, errors.New("Open Error: reached OpenMaxConcurrency")}
}
Expand Down

0 comments on commit 5749d3b

Please sign in to comment.