mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-08 20:41:49 +00:00
cleanup request
This commit is contained in:
parent
58c974a3a1
commit
432687c6ab
3 changed files with 22 additions and 49 deletions
|
|
@ -125,16 +125,6 @@ static int l_request(lua::State* L, network::Network& network) {
|
|||
std::move(response.body)}
|
||||
));
|
||||
};
|
||||
request.onReject = [currentRequestId](network::HttpResponse response) {
|
||||
push_event(NetworkEvent(
|
||||
RESPONSE,
|
||||
ResponseEventDto {
|
||||
response.status,
|
||||
false,
|
||||
currentRequestId,
|
||||
std::move(response.body)}
|
||||
));
|
||||
};
|
||||
|
||||
network.request(std::move(request));
|
||||
return lua::pushinteger(L, currentRequestId);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue