So the issue is:
In case of failure callback this works -
void OnFailure(const CefRefPtr<Callback>& callback, const std::string& errorJson) noexcept {
constexpr int errorCode = -1;
if (CefCurrentlyOn(TID_UI)) {
return callback->Failure(errorCode, errorJson);
}
CefRefPtr<CefTask> task = CefCreateClosureTask(base::BindOnce(
&Callback::Failure,
callback,
errorCode,
errorJson
));
if (!CefPostTask(TID_UI, task)) {
ATLAS_LOG(AtlasLog::ERR) << "Unable to post failure callback task";
}
}
But for success -
void OnSuccess(const CefRefPtr<Callback>& callback, const std::string& responseJson) noexcept {
if (CefCurrentlyOn(TID_UI)) {
return callback->Success(responseJson);
}
CefRefPtr<CefTask> task = CefCreateClosureTask(base::BindOnce(
&Callback::Success,
callback,
responseJson
));
if (!CefPostTask(TID_UI, task)) {
ATLAS_LOG(AtlasLog::ERR) << "Unable to post success callback task";
}
}
I see the below errors starting v6045
- img.PNG (16.65 KiB) Viewed 877 times