From a9962b2ead8c155f1743bb8dda25d8dd83d29574 Mon Sep 17 00:00:00 2001 From: Chris Bannister Date: Fri, 25 Dec 2015 21:13:21 +0000 Subject: [PATCH] connection pool filling should finish in sync --- connectionpool.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/connectionpool.go b/connectionpool.go index df7427e52..c1c543e4f 100644 --- a/connectionpool.go +++ b/connectionpool.go @@ -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 @@ -432,7 +432,7 @@ func (pool *hostConnPool) fill() { fillCount-- } - go pool.fillingStopped() + pool.fillingStopped() return }