client cancel() w/ tryCall()
Fail soft if worker thread has already stopped.
This commit is contained in:
+2
-2
@@ -172,8 +172,8 @@ struct GPROp : public OperationBase
|
||||
{
|
||||
decltype (done) junk;
|
||||
decltype (onInit) junkI;
|
||||
bool ret;
|
||||
loop.call([this, &junk, &junkI, &ret](){
|
||||
bool ret = false;
|
||||
(void)loop.tryCall([this, &junk, &junkI, &ret](){
|
||||
ret = _cancel(false);
|
||||
junk = std::move(done);
|
||||
junkI = std::move(onInit);
|
||||
|
||||
Reference in New Issue
Block a user