Commit b74e7bae authored by Dominik Hebeler's avatar Dominik Hebeler
Browse files

fixed wrong exception

parent dbf4da26
......@@ -40,12 +40,12 @@ class LoadSpam extends Command
public function handle()
{
// Redis might not be available now
for ($count = 0; $count < 10; $count++) {
for ($count = 0; $count < 60; $count++) {
try {
Redis::connection();
break;
} catch (\Predis\Connection\ConnectionException $e) {
if ($count >= 9) {
} catch (\Exception $e) {
if ($count >= 59) {
// If its not available after 10 seconds we will exit
return;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment