This commit is contained in:
2021-02-20 10:58:39 +08:00
parent f5650762ba
commit 1c1b59ea0a
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -52,7 +52,7 @@ class Redis extends Pool
}
[$time, $clients] = $this->get($coroutineName);
if ($clients === null) {
throw new Exception('Redis exception.');
return $this->newClient($config, $coroutineName);
}
return Context::setContext($coroutineName, $clients);
}