Skip to content

Commit

Permalink
isset
Browse files Browse the repository at this point in the history
  • Loading branch information
linvanda committed Jun 3, 2019
1 parent ca95c5a commit 0473420
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Pool/CoPool.php
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ protected function __construct(IConnectorBuilder $connectorBuilder, int $size =
*/
public static function instance(IConnectorBuilder $connectorBuilder, int $size = 25, int $maxSleepTime = 600, int $maxExecCount = 1000): CoPool
{
if (!static::$container[$connectorBuilder->getKey()]) {
if (!isset(static::$container[$connectorBuilder->getKey()])) {
static::$container[$connectorBuilder->getKey()] = new static($connectorBuilder, $size, $maxSleepTime, $maxExecCount);
}

Expand Down

0 comments on commit 0473420

Please sign in to comment.