Swapped callback processing order from FILO to FIFO

This commit is contained in:
Nefarius 2014-06-23 19:36:42 +02:00 committed by Nicholas Hastings
parent 9772660131
commit 9142f9b0e1
2 changed files with 3 additions and 3 deletions

View File

@ -657,7 +657,7 @@ void HTTPSessionManager::RunFrame()
{
if (!callbacks.empty())
{
HTTPRequest request = this->callbacks.back();
HTTPRequest request = this->callbacks[0];
HandleError herr;
IPlugin *parent = plsys->PluginFromHandle(request.plugin, &herr);
@ -682,7 +682,7 @@ void HTTPSessionManager::RunFrame()
}
}
callbacks.pop();
callbacks.remove(0);
}
callbacks_.DoUnlock();

View File

@ -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.
*