This commit is contained in:
2020-09-10 13:44:47 +08:00
parent 407f93c890
commit a2d3c259a8
+1
View File
@@ -47,6 +47,7 @@ class OnRequest extends Callback
} catch (Error | \Throwable $exception) { } catch (Error | \Throwable $exception) {
$params = $this->sendErrorMessage($sResponse ?? null, $exception, $response); $params = $this->sendErrorMessage($sResponse ?? null, $exception, $response);
} finally { } finally {
unset($sResponse, $response);
$events = Snowflake::app()->getEvent(); $events = Snowflake::app()->getEvent();
if (!$events->exists(Event::EVENT_AFTER_REQUEST)) { if (!$events->exists(Event::EVENT_AFTER_REQUEST)) {
return; return;