Skip to content
Snippets Groups Projects
Commit 9cb51220 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 404065a9 dad5fe2c
No related branches found
No related tags found
2 merge requests!859Development,!837Bugfix
...@@ -97,7 +97,7 @@ class Searcher implements ShouldQueue ...@@ -97,7 +97,7 @@ class Searcher implements ShouldQueue
} }
} }
// When we reach this point, time has come for this Searcher to retire // When we reach this point, time has come for this Searcher to retire
$this->exit(); $this->shutdown();
} }
private function retrieveUrl($url){ private function retrieveUrl($url){
...@@ -116,7 +116,7 @@ class Searcher implements ShouldQueue ...@@ -116,7 +116,7 @@ class Searcher implements ShouldQueue
$this->lastTime = microtime(true); $this->lastTime = microtime(true);
} }
private function exit(){ private function shutdown(){
Redis::hdel($this->name . ".stats", $this->pid); Redis::hdel($this->name . ".stats", $this->pid);
if(sizeof(Redis::hgetall($this->name . ".stats")) === 0){ if(sizeof(Redis::hgetall($this->name . ".stats")) === 0){
Redis::del($this->name); Redis::del($this->name);
......
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