This commit is contained in:
2021-03-29 17:00:53 +08:00
parent 459d48686a
commit e9f82e59cc
9 changed files with 9 additions and 9 deletions
+1 -1
View File
@@ -67,7 +67,7 @@ class Connection extends Component
/**
* @throws Exception
*/
#[Aspect(InjectProperty::class)] public function init()
public function init()
{
$event = Snowflake::app()->getEvent();
$event->on(Event::SYSTEM_RESOURCE_CLEAN, [$this, 'disconnect']);