From da8ed340efdab04d462149ee3cd15a0843fd7af9 Mon Sep 17 00:00:00 2001 From: Netkas Date: Thu, 27 Jul 2023 17:51:54 -0400 Subject: [PATCH] Minor correction --- src/TamerLib/Classes/JobManager.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/TamerLib/Classes/JobManager.php b/src/TamerLib/Classes/JobManager.php index 660fd92..2e69526 100644 --- a/src/TamerLib/Classes/JobManager.php +++ b/src/TamerLib/Classes/JobManager.php @@ -145,7 +145,10 @@ try { - $this->redis_client->close(); + if($this->redis_client instanceof Redis) + { + $this->redis_client->close(); + } } catch(Exception $e) {