This commit is contained in:
2023-08-17 11:31:54 +08:00
parent ccacfcbc02
commit 7015e39fa6
+1 -1
View File
@@ -158,7 +158,7 @@ class Connection extends Component
throw new Exception('Pool waite timeout at ' . $this->waite_time);
}
[$client, $time] = $data;
if ((time() - $time) < $this->idle_time || $this->canUse($client)) {
if ((time() - $time) < $this->idle_time && $this->canUse($client)) {
return $client;
}