Commit 8d841a33 authored by Dominik Hebeler's avatar Dominik Hebeler

only pushing if answer != null

parent 4130f3ea
......@@ -950,10 +950,11 @@ class MetaGer
break;
}
$answer = Redis::brpop($enginesToWaitFor, 2);
Redis::lpush($answer[0], $answer[1]);
if ($answer === null) {
continue;
} else {
Redis::lpush($answer[0], $answer[1]);
}
foreach ($engines as $index => $engine) {
if ($engine->hash === $answer[0]) {
......
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