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

Merge branch '485-ux-bei-such-timeout' into 'development'

Bugfix

Closes #485

See merge request !837
parents 0d27b8d7 b228e9ac
......@@ -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