Skip to content

Commit

Permalink
[1.x] Ignore Response::create failed (#590)
Browse files Browse the repository at this point in the history
* Ignore Response::create failed

* Update EnsureRequestsDontExceedMaxExecutionTime.php

* Update EnsureRequestsDontExceedMaxExecutionTime.php

Co-authored-by: Taylor Otwell <[email protected]>
  • Loading branch information
sy-records and taylorotwell authored Oct 3, 2022
1 parent 4bd8365 commit c054888
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,11 @@ public function __invoke()

if ($this->server instanceof Server) {
$response = Response::create($this->server, $row['fd']);
$response->status(408);
$response->end();

if ($response) {
$response->status(408);
$response->end();
}
}
}
}
Expand Down

0 comments on commit c054888

Please sign in to comment.