mirror of
https://github.com/nextcloud/desktop.git
synced 2025-10-26 11:17:43 +00:00
Propagator: Avoid duplicate async abort
This commit is contained in:
parent
2ac7e0200a
commit
e2711224ed
@ -445,7 +445,9 @@ public:
|
||||
|
||||
void abort()
|
||||
{
|
||||
_abortRequested.fetchAndStoreOrdered(true);
|
||||
bool alreadyAborting = _abortRequested.fetchAndStoreOrdered(true);
|
||||
if (alreadyAborting)
|
||||
return;
|
||||
if (_rootJob) {
|
||||
// Connect to abortFinished which signals that abort has been asynchronously finished
|
||||
connect(_rootJob.data(), &PropagateDirectory::abortFinished, this, &OwncloudPropagator::emitFinished);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user