Browse Source

Merge pull request #432 from Zariel/buffer-response-chan

buffer the connection response channel
Chris Bannister 10 years ago
parent
commit
80e812acf0
1 changed files with 1 additions and 1 deletions
  1. 1 1
      conn.go

+ 1 - 1
conn.go

@@ -180,7 +180,7 @@ func Connect(addr string, cfg ConnConfig, errorHandler ConnErrorHandler) (*Conn,
 	}
 
 	for i := 0; i < cfg.NumStreams; i++ {
-		c.calls[i].resp = make(chan error)
+		c.calls[i].resp = make(chan error, 1)
 		c.uniq <- i
 	}