Exit quicker if a request is being executed when stk is quit.
This commit is contained in:
parent
b2a936c8cd
commit
fe62df253d
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user