This commit is contained in:
2021-03-05 14:55:50 +08:00
parent b61c209195
commit b959bd037d
10 changed files with 29 additions and 35 deletions
+4
View File
@@ -88,6 +88,7 @@ class OnHandshake extends Callback
{
$this->execute($request, $response);
fire(Event::SYSTEM_RESOURCE_RELEASES);
logger()->insert();
}
@@ -119,6 +120,9 @@ class OnHandshake extends Callback
} catch (\Throwable $exception) {
$this->addError($exception);
return $this->disconnect($response, 500);
} finally {
fire(Event::SYSTEM_RESOURCE_CLEAN);
logger()->insert();
}
}