Skip to content

Commit

Permalink
Update composer.json
Browse files Browse the repository at this point in the history
  • Loading branch information
cclilshy committed Oct 25, 2024
1 parent 8deee25 commit ea0d908
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "cloudtay/ripple-http",
"version": "v0.1",
"version": "v0.2",
"license": "MIT",
"authors": [
{
Expand Down
4 changes: 1 addition & 3 deletions src/Server/Server.php
Original file line number Diff line number Diff line change
Expand Up @@ -113,9 +113,7 @@ public function __construct(string $address, mixed $context = null)
public function listen(): void
{
$this->server->onReadable(function (SocketStream $stream) {
try {
$client = $stream->accept();
} catch (Throwable) {
if (!$client = $stream->accept()) {
return;
}

Expand Down
4 changes: 2 additions & 2 deletions tests/HttpTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
use GuzzleHttp\Exception\GuzzleException;
use PHPUnit\Framework\Attributes\Test;
use PHPUnit\Framework\TestCase;
use Ripple\Coroutine\Promise;
use Ripple\App\Http\Server\Request;
use Psc\Utils\Output;
use Ripple\Coroutine\Promise;
use Ripple\Utils\Output;
use Symfony\Component\HttpFoundation\File\UploadedFile;

use function Co\async;
Expand Down

0 comments on commit ea0d908

Please sign in to comment.