改名
This commit is contained in:
@@ -166,6 +166,7 @@ abstract class Pool extends Component
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @param string $name
|
* @param string $name
|
||||||
|
* @throws Exception
|
||||||
*/
|
*/
|
||||||
public function clean(string $name)
|
public function clean(string $name)
|
||||||
{
|
{
|
||||||
@@ -175,6 +176,8 @@ abstract class Pool extends Component
|
|||||||
$channel = $this->_items[$name];
|
$channel = $this->_items[$name];
|
||||||
while ([$time, $client] = $channel->pop(0.001)) {
|
while ([$time, $client] = $channel->pop(0.001)) {
|
||||||
unset($client);
|
unset($client);
|
||||||
|
|
||||||
|
$this->desc($name);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -137,7 +137,7 @@ class Redis extends Pool
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->_create -= 1;
|
$this->desc($coroutineName);
|
||||||
|
|
||||||
$this->remove($coroutineName);
|
$this->remove($coroutineName);
|
||||||
$this->clean($coroutineName);
|
$this->clean($coroutineName);
|
||||||
|
|||||||
Reference in New Issue
Block a user