mirror of
https://github.com/alliedmodders/sourcemod.git
synced 2025-12-07 02:18:35 +00:00
Swapped callback processing order from FILO to FIFO
This commit is contained in:
parent
9772660131
commit
9142f9b0e1
@ -657,7 +657,7 @@ void HTTPSessionManager::RunFrame()
|
|||||||
{
|
{
|
||||||
if (!callbacks.empty())
|
if (!callbacks.empty())
|
||||||
{
|
{
|
||||||
HTTPRequest request = this->callbacks.back();
|
HTTPRequest request = this->callbacks[0];
|
||||||
HandleError herr;
|
HandleError herr;
|
||||||
IPlugin *parent = plsys->PluginFromHandle(request.plugin, &herr);
|
IPlugin *parent = plsys->PluginFromHandle(request.plugin, &herr);
|
||||||
|
|
||||||
@ -682,7 +682,7 @@ void HTTPSessionManager::RunFrame()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
callbacks.pop();
|
callbacks.remove(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
callbacks_.DoUnlock();
|
callbacks_.DoUnlock();
|
||||||
|
|||||||
@ -52,7 +52,7 @@ funcenum HTTP_SessionCallback {
|
|||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Creates a new HTTP ready-to-use session handle.
|
* Creates a new ready-to-use HTTP session handle.
|
||||||
*
|
*
|
||||||
* @return Valid session handle on success, INVALID_HANDLE on failure.
|
* @return Valid session handle on success, INVALID_HANDLE on failure.
|
||||||
*
|
*
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user