改名
This commit is contained in:
@@ -39,10 +39,14 @@ trait Timeout
|
|||||||
protected function flush($retain_number)
|
protected function flush($retain_number)
|
||||||
{
|
{
|
||||||
$channels = $this->getChannels();
|
$channels = $this->getChannels();
|
||||||
|
|
||||||
|
$names = [];
|
||||||
foreach ($channels as $name => $channel) {
|
foreach ($channels as $name => $channel) {
|
||||||
|
$names[] = $name;
|
||||||
$this->pop($channel, $name, $retain_number);
|
$this->pop($channel, $name, $retain_number);
|
||||||
}
|
}
|
||||||
if ($retain_number == 0) {
|
if ($retain_number == 0) {
|
||||||
|
$this->debug('release ' . implode(',', $names));
|
||||||
$this->debug('release Timer::tick');
|
$this->debug('release Timer::tick');
|
||||||
Timer::clear($this->creates);
|
Timer::clear($this->creates);
|
||||||
$this->creates = -1;
|
$this->creates = -1;
|
||||||
|
|||||||
Reference in New Issue
Block a user