浏览代码

connection pool filling should finish in sync

Chris Bannister 10 年之前
父节点
当前提交
a9962b2ead
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      connectionpool.go

+ 2 - 2
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
 	}