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

Bugfix

parent cd6f6ec2
......@@ -97,7 +97,7 @@ class Searcher implements ShouldQueue
}
}
// When we reach this point, time has come for this Searcher to retire
$this->exit();
$this->shutdown();
}
private function retrieveUrl($url){
......@@ -116,7 +116,7 @@ class Searcher implements ShouldQueue
$this->lastTime = microtime(true);
}
private function exit(){
private function shutdown(){
Redis::hdel($this->name . ".stats", $this->pid);
if(sizeof(Redis::hgetall($this->name . ".stats")) === 0){
Redis::del($this->name);
......
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