Skip to content

Commit

Permalink
Revert "CRemoteCalls: make callRemote return 0 as errno upon success (#…
Browse files Browse the repository at this point in the history
…295)"

This reverts commit a914a58.
  • Loading branch information
qaisjp committed Sep 2, 2019
1 parent e5ede83 commit 25ffe62
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Server/mods/deathmatch/logic/CRemoteCalls.cpp
Expand Up @@ -243,10 +243,12 @@ void CRemoteCall::DownloadFinishedCallback(const SHttpDownloadResult& result)
if (result.bSuccess) if (result.bSuccess)
{ {
if (pCall->IsFetch()) if (pCall->IsFetch())
{
arguments.PushString(std::string(result.pData, result.dataSize)); arguments.PushString(std::string(result.pData, result.dataSize));
arguments.PushNumber(0);
}
else else
arguments.ReadFromJSONString(result.pData); arguments.ReadFromJSONString(result.pData);
arguments.PushNumber(0);
} }
else else
{ {
Expand Down

0 comments on commit 25ffe62

Please sign in to comment.