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

only pushing if answer != null

parent 4130f3ea
No related branches found
No related tags found
3 merge requests!1712Development,!1705Development,!1704Resolve "Optimize Request fetcher"
...@@ -950,10 +950,11 @@ class MetaGer ...@@ -950,10 +950,11 @@ class MetaGer
break; break;
} }
$answer = Redis::brpop($enginesToWaitFor, 2); $answer = Redis::brpop($enginesToWaitFor, 2);
Redis::lpush($answer[0], $answer[1]);
if ($answer === null) { if ($answer === null) {
continue; continue;
} else {
Redis::lpush($answer[0], $answer[1]);
} }
foreach ($engines as $index => $engine) { foreach ($engines as $index => $engine) {
if ($engine->hash === $answer[0]) { if ($engine->hash === $answer[0]) {
......
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