mirror of
https://github.com/alliedmodders/sourcemod.git
synced 2025-12-09 11:28:40 +00:00
Removed unnecessary check in RunFrame()
This commit is contained in:
parent
d7d8346482
commit
27256665ac
@ -699,25 +699,21 @@ void HTTPSessionManager::RunFrame()
|
|||||||
// Is the requesting plugin still alive?
|
// Is the requesting plugin still alive?
|
||||||
if (pCtx != NULL)
|
if (pCtx != NULL)
|
||||||
{
|
{
|
||||||
// TODO: this may be unnecessary
|
funcid_t id = request.contextPack.pCallbackFunction->uPluginFunction;
|
||||||
if (plsys->FindPluginByContext(request.pCtx->GetContext()))
|
IPluginFunction *pFunction = NULL;
|
||||||
{
|
pFunction = pCtx->GetFunctionById(id);
|
||||||
funcid_t id = request.contextPack.pCallbackFunction->uPluginFunction;
|
|
||||||
IPluginFunction *pFunction = NULL;
|
|
||||||
pFunction = pCtx->GetFunctionById(id);
|
|
||||||
|
|
||||||
if (pFunction != NULL)
|
if (pFunction != NULL)
|
||||||
|
{
|
||||||
|
// Push data and execute callback
|
||||||
|
pFunction->PushCell(request.handles.hndlSession);
|
||||||
|
pFunction->PushCell(request.result);
|
||||||
|
pFunction->PushCell(request.handles.hndlDownloader);
|
||||||
|
if (request.contextPack.pCallbackFunction->bHasContext)
|
||||||
{
|
{
|
||||||
// Push data and execute callback
|
pFunction->PushCell(request.contextPack.iPluginContextValue);
|
||||||
pFunction->PushCell(request.handles.hndlSession);
|
|
||||||
pFunction->PushCell(request.result);
|
|
||||||
pFunction->PushCell(request.handles.hndlDownloader);
|
|
||||||
if (request.contextPack.pCallbackFunction->bHasContext)
|
|
||||||
{
|
|
||||||
pFunction->PushCell(request.contextPack.iPluginContextValue);
|
|
||||||
}
|
|
||||||
pFunction->Execute(NULL);
|
|
||||||
}
|
}
|
||||||
|
pFunction->Execute(NULL);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user