Skip to content

Commit

Permalink
同上
Browse files Browse the repository at this point in the history
  • Loading branch information
kcloze committed Feb 9, 2018
1 parent 58525dd commit 6281b35
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Queue/Queue.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public static function getQueue(array $config, Logs $logger)
//最多尝试连接3次
for ($i=0; $i < 3; $i++) {
$connection=$classQueue::getConnection($config, $logger);
if (is_object($connection)) {
if ($connection && is_object($connection)) {
break;
}
}
Expand Down

0 comments on commit 6281b35

Please sign in to comment.