Forráskód Böngészése

connection pool filling should finish in sync

Chris Bannister 10 éve
szülő
commit
a9962b2ead
1 módosított fájl, 2 hozzáadás és 2 törlés
  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
 	}