Exit quicker if a request is being executed when stk is quit.

This commit is contained in:
hiker 2014-08-18 22:43:26 +10:00
parent b2a936c8cd
commit fe62df253d

View File

@ -60,9 +60,14 @@ namespace Online
void Request::execute()
{
assert(isBusy());
// Abort as early as possible if abort is requested
if(RequestManager::get()->getAbort()) return;
prepareOperation();
if(RequestManager::get()->getAbort()) return;
operation();
if(RequestManager::get()->getAbort()) return;
setExecuted();
if(RequestManager::get()->getAbort()) return;
afterOperation();
} // execute