diff --git a/kiri-engine/Redis/Redis.php b/kiri-engine/Redis/Redis.php index 5562d964..364b10e2 100644 --- a/kiri-engine/Redis/Redis.php +++ b/kiri-engine/Redis/Redis.php @@ -154,7 +154,9 @@ SCRIPT; } catch (\Throwable $throwable) { return trigger_print_error(throwable($throwable)); } finally { - $this->pool()->push($this->host, $client); + if ($client->ping('h') == 'h') { + $this->pool()->push($this->host, $client); + } } }