Skip to content

Commit

Permalink
connection pool filling should finish in sync
Browse files Browse the repository at this point in the history
  • Loading branch information
Zariel committed Dec 25, 2015
1 parent 45d0980 commit a9962b2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions connectionpool.go
Original file line number Diff line number Diff line change
Expand Up @@ -412,7 +412,7 @@ func (pool *hostConnPool) fill() {

if err != nil {
// probably unreachable host
go pool.fillingStopped()
pool.fillingStopped()

// this is calle with the connetion pool mutex held, this call will
// then recursivly try to lock it again. FIXME
Expand All @@ -432,7 +432,7 @@ func (pool *hostConnPool) fill() {
fillCount--
}

go pool.fillingStopped()
pool.fillingStopped()
return
}

Expand Down

0 comments on commit a9962b2

Please sign in to comment.