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()
|
void Request::execute()
|
||||||
{
|
{
|
||||||
assert(isBusy());
|
assert(isBusy());
|
||||||
|
// Abort as early as possible if abort is requested
|
||||||
|
if(RequestManager::get()->getAbort()) return;
|
||||||
prepareOperation();
|
prepareOperation();
|
||||||
|
if(RequestManager::get()->getAbort()) return;
|
||||||
operation();
|
operation();
|
||||||
|
if(RequestManager::get()->getAbort()) return;
|
||||||
setExecuted();
|
setExecuted();
|
||||||
|
if(RequestManager::get()->getAbort()) return;
|
||||||
afterOperation();
|
afterOperation();
|
||||||
} // execute
|
} // execute
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user