Skip to content

Commit b62b440

Browse files
committed
Explicitly reject empty lists for concurrent connections
1 parent a27c1cb commit b62b440

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Multiple/ConnectionManagerConcurrent.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ class ConnectionManagerConcurrent extends ConnectionManagerConsecutive
1010
{
1111
public function create($host, $port)
1212
{
13+
if (!$this->managers) {
14+
return Promise\reject(new \UnderflowException('No managers to try to connect through'));
15+
}
16+
1317
$all = array();
1418
foreach ($this->managers as $connector) {
1519
/* @var $connection Connector */

0 commit comments

Comments
 (0)