Skip to content

Commit

Permalink
fix callback
Browse files Browse the repository at this point in the history
  • Loading branch information
AGulev committed Feb 16, 2024
1 parent e9c637a commit a500e01
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions engine/script/src/http_service.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
#include <dlib/uri.h>
#include <dlib/math.h>
#include <ddf/ddf.h>
#include <dmsdk/gameobject/script.h>
#include "http_ddf.h"
#include "http_service.h"

Expand Down Expand Up @@ -123,12 +124,8 @@ namespace dmHttpService
dmHttpDDF::HttpRequestProgress progress = {};
progress.m_BytesReceived = content_data_size;

if (dmMessage::RESULT_OK != dmMessage::Post(0,
&worker->m_CurrentRequesterURL,
dmHttpDDF::HttpRequestProgress::m_DDFHash,
worker->m_ResponseUserData1, worker->m_ResponseUserData2,
(uintptr_t) dmHttpDDF::HttpRequestProgress::m_DDFDescriptor,
&progress, sizeof(progress), 0))
if (dmGameObject::RESULT_OK != dmGameObject::PostDDF(&progress, 0,
&worker->m_CurrentRequesterURL, worker->m_ResponseUserData2, false))
{
dmLogWarning("Failed to return http-progress. Requester deleted?");
}
Expand Down

0 comments on commit a500e01

Please sign in to comment.