Skip to content
Snippets Groups Projects
Commit b74e7bae authored by Dominik Hebeler's avatar Dominik Hebeler
Browse files

fixed wrong exception

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