This commit is contained in:
2021-02-20 13:43:12 +08:00
parent 728058441a
commit b74d7579d1
+4
View File
@@ -39,10 +39,14 @@ trait Timeout
protected function flush($retain_number)
{
$channels = $this->getChannels();
$names = [];
foreach ($channels as $name => $channel) {
$names[] = $name;
$this->pop($channel, $name, $retain_number);
}
if ($retain_number == 0) {
$this->debug('release ' . implode(',', $names));
$this->debug('release Timer::tick');
Timer::clear($this->creates);
$this->creates = -1;