Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
open-source
MetaGer
Commits
b74e7bae
Commit
b74e7bae
authored
Aug 24, 2021
by
Dominik Hebeler
Browse files
fixed wrong exception
parent
dbf4da26
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
app/Console/Commands/LoadSpam.php
View file @
b74e7bae
...
...
@@ -40,12 +40,12 @@ class LoadSpam extends Command
public
function
handle
()
{
// Redis might not be available now
for
(
$count
=
0
;
$count
<
1
0
;
$count
++
)
{
for
(
$count
=
0
;
$count
<
6
0
;
$count
++
)
{
try
{
Redis
::
connection
();
break
;
}
catch
(
\
Predis\Connection\Connection
Exception
$e
)
{
if
(
$count
>=
9
)
{
}
catch
(
\
Exception
$e
)
{
if
(
$count
>=
5
9
)
{
// If its not available after 10 seconds we will exit
return
;
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment