Skip to content

Commit 4a8c8cc

Browse files
authored
fix bad end
1 parent 237adfe commit 4a8c8cc

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

src/HttpServer.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -288,8 +288,6 @@ public function onRequest(\Swoole\Http\Request $request, \Swoole\Http\Response $
288288
$cnmsg
289289
] = HttpServer\Handler::start($request, $response);
290290
$user_id = HttpServer\Authorization::getUidWithRole();
291-
292-
HttpServer\Handler::end($request);
293291
} catch(\Swoole\ExitException $e) {
294292
trigger_error("Unexpected exit:{$e->getCode()} {$e->getMessage()}");
295293
} catch(\Throwable $e) {
@@ -364,4 +362,4 @@ public function onTask(\Swoole\Server $serv, int $task_id, int $src_worker_id, $
364362
}
365363
}
366364
public function onFinish(\Swoole\Server $serv, int $task_id, string $data) {}
367-
}
365+
}

0 commit comments

Comments
 (0)