From dad5fe2c15f9e6054d2e3f5f3304a2088e9ddeb8 Mon Sep 17 00:00:00 2001
From: Dominik Pfennig <dominik@suma-ev.de>
Date: Mon, 8 May 2017 11:36:53 +0200
Subject: [PATCH] Bugfix

---
 app/Jobs/Searcher.php | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/app/Jobs/Searcher.php b/app/Jobs/Searcher.php
index 7496b42db..194a07536 100644
--- a/app/Jobs/Searcher.php
+++ b/app/Jobs/Searcher.php
@@ -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);
-- 
GitLab